use of com.alibaba.maxgraph.common.config.Configs in project GraphScope by alibaba.
the class Store method main.
public static void main(String[] args) throws IOException {
String configFile = System.getProperty("config.file");
Configs conf = new Configs(configFile);
Store store = new Store(conf);
NodeLauncher nodeLauncher = new NodeLauncher(store);
nodeLauncher.start();
}
use of com.alibaba.maxgraph.common.config.Configs in project GraphScope by alibaba.
the class GaiaEngine method init.
@Override
public void init() {
Configs engineConfigs = Configs.newBuilder(this.configs).put("worker.num", String.valueOf(CommonConfig.STORE_NODE_COUNT.get(this.configs))).build();
byte[] configBytes = engineConfigs.toProto().toByteArray();
this.pointer = GaiaLibrary.INSTANCE.initialize(configBytes, configBytes.length);
}
use of com.alibaba.maxgraph.common.config.Configs in project GraphScope by alibaba.
the class GaiaEngine method init.
@Override
public void init() {
Configs engineConfigs = Configs.newBuilder(this.configs).put("worker.num", String.valueOf(CommonConfig.STORE_NODE_COUNT.get(this.configs))).build();
byte[] configBytes = engineConfigs.toProto().toByteArray();
this.pointer = GaiaLibrary.INSTANCE.initialize(configBytes, configBytes.length);
}
Aggregations