use of com.alibaba.graphscope.gaia.broadcast.channel.AsyncRpcChannelFetcher in project GraphScope by alibaba.
the class Frontend method initAndStartGremlinServer.
@Override
protected void initAndStartGremlinServer() throws Exception {
SchemaFetcher schemaFetcher;
String vineyardSchemaPath = this.instanceConfig.getVineyardSchemaPath();
logger.info("Read schema from vineyard schema file " + vineyardSchemaPath);
schemaFetcher = new JsonFileSchemaFetcher(vineyardSchemaPath);
this.remoteGraph = new RemoteGraph(this, schemaFetcher);
this.remoteGraph.refresh();
this.graph = new TinkerMaxGraph(instanceConfig, remoteGraph, new DefaultGraphDfs());
// add gaia compiler
AsyncRpcChannelFetcher gaiaRpcFetcher = new AddressChannelFetcher(new ExecutorAddressFetcher(this.clientManager));
GraphStoreService gaiaStoreService = new VineyardGraphStore(schemaFetcher);
AbstractBroadcastProcessor broadcastProcessor = new AsyncRpcBroadcastProcessor(gaiaRpcFetcher);
gaiaGraphServer = new GaiaGraphServer(this.graph, instanceConfig, gaiaStoreService, broadcastProcessor, new VineyardConfig(instanceConfig));
gaiaGraphServer.start(0, null, false);
this.gremlinServerPort = gaiaGraphServer.getGremlinServerPort();
}
use of com.alibaba.graphscope.gaia.broadcast.channel.AsyncRpcChannelFetcher in project GraphScope by alibaba.
the class GaiaServiceProducer method makeGraphService.
@Override
public AbstractService makeGraphService(SchemaFetcher schemaFetcher, ChannelManager channelManager) {
int executorCount = CommonConfig.STORE_NODE_COUNT.get(this.configs);
AsyncRpcChannelFetcher gaiaRpcFetcher = new ChannelManagerFetcher(channelManager, executorCount, RoleType.GAIA_RPC);
GraphStoreService gaiaStoreService = new MaxGraphStore(schemaFetcher);
return new GaiaGraphServer(configs, gaiaStoreService, new AsyncRpcBroadcastProcessor(gaiaRpcFetcher), new MaxGraphConfig(configs));
}
Aggregations