Search in sources :

Example 1 with JobManagementServiceFutureStub

use of com.netflix.titus.grpc.protogen.JobManagementServiceGrpc.JobManagementServiceFutureStub in project titus-control-plane by Netflix.

the class TitusClientImplTest method setup.

@Before
public void setup() throws IOException {
    final MockJobManagerService mockJobManagerService = new MockJobManagerService();
    testServer = InProcessServerBuilder.forName("testServer").directExecutor().addService(mockJobManagerService).build().start();
    final ManagedChannel channel = InProcessChannelBuilder.forName("testServer").directExecutor().usePlaintext().build();
    final JobManagementServiceStub jobManagementServiceStub = JobManagementServiceGrpc.newStub(channel);
    final JobManagementServiceFutureStub jobManagementServiceFutureStub = JobManagementServiceGrpc.newFutureStub(channel);
    titusClient = new TitusClientImpl(jobManagementServiceStub, jobManagementServiceFutureStub, new DefaultRegistry());
}
Also used : JobManagementServiceFutureStub(com.netflix.titus.grpc.protogen.JobManagementServiceGrpc.JobManagementServiceFutureStub) ManagedChannel(io.grpc.ManagedChannel) DefaultRegistry(com.netflix.spectator.api.DefaultRegistry) JobManagementServiceStub(com.netflix.titus.grpc.protogen.JobManagementServiceGrpc.JobManagementServiceStub) Before(org.junit.Before)

Aggregations

DefaultRegistry (com.netflix.spectator.api.DefaultRegistry)1 JobManagementServiceFutureStub (com.netflix.titus.grpc.protogen.JobManagementServiceGrpc.JobManagementServiceFutureStub)1 JobManagementServiceStub (com.netflix.titus.grpc.protogen.JobManagementServiceGrpc.JobManagementServiceStub)1 ManagedChannel (io.grpc.ManagedChannel)1 Before (org.junit.Before)1