Search in sources :

Example 31 with Configs

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();
}
Also used : Configs(com.alibaba.maxgraph.common.config.Configs)

Example 32 with Configs

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);
}
Also used : Configs(com.alibaba.maxgraph.common.config.Configs)

Example 33 with Configs

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);
}
Also used : Configs(com.alibaba.maxgraph.common.config.Configs)

Aggregations

Configs (com.alibaba.maxgraph.common.config.Configs)33 Test (org.junit.jupiter.api.Test)22 MetaService (com.alibaba.graphscope.groot.meta.MetaService)7 LogService (com.alibaba.graphscope.groot.wal.LogService)7 MetricsCollector (com.alibaba.graphscope.groot.metrics.MetricsCollector)5 CountDownLatch (java.util.concurrent.CountDownLatch)5 LocalNodeProvider (com.alibaba.graphscope.groot.discovery.LocalNodeProvider)4 StoreDataBatch (com.alibaba.graphscope.groot.operation.StoreDataBatch)4 MetaStore (com.alibaba.graphscope.groot.meta.MetaStore)3 OperationBatch (com.alibaba.graphscope.groot.operation.OperationBatch)3 GraphPartition (com.alibaba.graphscope.groot.store.GraphPartition)3 StoreService (com.alibaba.graphscope.groot.store.StoreService)3 KafkaLogService (com.alibaba.graphscope.groot.wal.kafka.KafkaLogService)3 RoleType (com.alibaba.maxgraph.common.RoleType)3 CuratorFramework (org.apache.curator.framework.CuratorFramework)3 TestingServer (org.apache.curator.test.TestingServer)3 IngestorWriteSnapshotIdNotifier (com.alibaba.graphscope.groot.coordinator.IngestorWriteSnapshotIdNotifier)2 SnapshotManager (com.alibaba.graphscope.groot.coordinator.SnapshotManager)2 MaxGraphNode (com.alibaba.graphscope.groot.discovery.MaxGraphNode)2 NodeDiscovery (com.alibaba.graphscope.groot.discovery.NodeDiscovery)2