use of com.netflix.titus.runtime.connector.jobmanager.ReactorJobManagementServiceStub in project titus-control-plane by Netflix.
the class CommandContext method getJobManagementClientWithKeepAlive.
public RemoteJobManagementClient getJobManagementClientWithKeepAlive(long keepAliveInternalMs) {
JobManagementServiceGrpc.JobManagementServiceStub stub = getJobManagementGrpcStub();
ReactorJobManagementServiceStub reactorStub = getGrpcToReactorClientFactory().apply(stub, ReactorJobManagementServiceStub.class, JobManagementServiceGrpc.getServiceDescriptor());
JobConnectorConfiguration configuration = Archaius2Ext.newConfiguration(JobConnectorConfiguration.class, "titus.connector.jobService.keepAliveIntervalMs", "" + keepAliveInternalMs);
return new RemoteJobManagementClientWithKeepAlive("cli", configuration, stub, reactorStub, titusRuntime);
}
Aggregations