use of io.dingodb.server.executor.config.ExecutorExtOptions in project dingo by dingodb.
the class ExecutorServer method buildRowStoreOptions.
private DingoRowStoreOptions buildRowStoreOptions() {
DingoRowStoreOptions rowStoreOpts = new DingoRowStoreOptions();
ExecutorExtOptions extOpts = svrOpts.getOptions();
rowStoreOpts.setClusterName(DingoOptions.instance().getClusterOpts().getName());
rowStoreOpts.setInitialServerList(svrOpts.getRaft().getInitExecRaftSvrList());
rowStoreOpts.setFailoverRetries(extOpts.getCliOptions().getMaxRetry());
rowStoreOpts.setFutureTimeoutMillis(extOpts.getCliOptions().getTimeoutMs());
PlacementDriverOptions driverOptions = new PlacementDriverOptions();
driverOptions.setFake(false);
driverOptions.setPdGroupId(extOpts.getCoordOptions().getGroup());
driverOptions.setInitialPdServerList(extOpts.getCoordOptions().getInitCoordRaftSvrList());
CliOptions cliOptions = new CliOptions();
cliOptions.setMaxRetry(extOpts.getCliOptions().getMaxRetry());
cliOptions.setTimeoutMs(extOpts.getCliOptions().getTimeoutMs());
driverOptions.setCliOptions(cliOptions);
rowStoreOpts.setPlacementDriverOptions(driverOptions);
Endpoint endpoint = new Endpoint(svrOpts.getIp(), svrOpts.getRaft().getPort());
extOpts.getStoreEngineOptions().setServerAddress(endpoint);
rowStoreOpts.setStoreEngineOptions(extOpts.getStoreEngineOptions());
return rowStoreOpts;
}
Aggregations