use of com.alibaba.graphscope.common.manager.IrMetaQueryCallback in project GraphScope by alibaba.
the class GraphServiceMain method main.
public static void main(String[] args) throws Exception {
Configs configs = new Configs("conf/ir.compiler.properties", FileLoadType.RELATIVE_PATH);
IrMetaFetcher irMetaFetcher = new ExperimentalMetaFetcher(configs);
RpcChannelFetcher fetcher = new HostsChannelFetcher(configs);
IrGremlinServer server = new IrGremlinServer();
server.start(configs, irMetaFetcher, fetcher, new IrMetaQueryCallback(irMetaFetcher), TestGraphFactory.EXPERIMENTAL);
}
use of com.alibaba.graphscope.common.manager.IrMetaQueryCallback 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 ir compiler
Configs configs = getConfigs(this.instanceConfig);
IrMetaFetcher irMetaFetcher = getStoreConfigs(this.instanceConfig);
RpcAddressFetcher addressFetcher = new ExecutorAddressFetcher(this.clientManager);
RpcChannelFetcher channelFetcher = new RpcAddressChannelFetcher(addressFetcher);
this.gremlinServer = new IrGremlinServer(this.instanceConfig.getGremlinServerPort());
this.gremlinServer.start(configs, irMetaFetcher, channelFetcher, new IrMetaQueryCallback(irMetaFetcher), TestGraphFactory.VINEYARD);
this.gremlinServerPort = gremlinServer.getGremlinServerPort();
}
Aggregations