use of com.alibaba.maxgraph.servers.jna.GaiaPortsResponse in project GraphScope by alibaba.
the class GaiaEngine method start.
@Override
public void start() {
try (GaiaPortsResponse gaiaPortsResponse = GaiaLibrary.INSTANCE.startEngine(this.pointer)) {
if (!gaiaPortsResponse.success) {
throw new MaxGraphException(gaiaPortsResponse.errMsg);
}
engineNodeProvider.apply(gaiaPortsResponse.enginePort);
rpcNodeProvider.apply(gaiaPortsResponse.rpcPort);
}
this.engineDiscovery.start();
this.engineDiscovery.addListener(this);
this.rpcDiscovery.start();
}
use of com.alibaba.maxgraph.servers.jna.GaiaPortsResponse in project GraphScope by alibaba.
the class GaiaEngine method start.
@Override
public void start() {
try (GaiaPortsResponse gaiaPortsResponse = GaiaLibrary.INSTANCE.startEngine(this.pointer)) {
if (!gaiaPortsResponse.success) {
throw new MaxGraphException(gaiaPortsResponse.errMsg);
}
engineNodeProvider.apply(gaiaPortsResponse.enginePort);
rpcNodeProvider.apply(gaiaPortsResponse.rpcPort);
}
this.engineDiscovery.start();
this.engineDiscovery.addListener(this);
this.rpcDiscovery.start();
}
Aggregations