Search in sources :

Example 1 with RemoteJobManagementClientWithKeepAlive

use of com.netflix.titus.runtime.connector.jobmanager.RemoteJobManagementClientWithKeepAlive 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);
}
Also used : JobManagementServiceGrpc(com.netflix.titus.grpc.protogen.JobManagementServiceGrpc) ReactorJobManagementServiceStub(com.netflix.titus.runtime.connector.jobmanager.ReactorJobManagementServiceStub) JobConnectorConfiguration(com.netflix.titus.runtime.connector.jobmanager.JobConnectorConfiguration) RemoteJobManagementClientWithKeepAlive(com.netflix.titus.runtime.connector.jobmanager.RemoteJobManagementClientWithKeepAlive)

Aggregations

JobManagementServiceGrpc (com.netflix.titus.grpc.protogen.JobManagementServiceGrpc)1 JobConnectorConfiguration (com.netflix.titus.runtime.connector.jobmanager.JobConnectorConfiguration)1 ReactorJobManagementServiceStub (com.netflix.titus.runtime.connector.jobmanager.ReactorJobManagementServiceStub)1 RemoteJobManagementClientWithKeepAlive (com.netflix.titus.runtime.connector.jobmanager.RemoteJobManagementClientWithKeepAlive)1