Stay organized with collections Save and categorize content based on your preferences.

TestInvocationManagementServer

public class TestInvocationManagementServer
extends TestInvocationManagementGrpc.TestInvocationManagementImplBase

java.lang.Object
   ↳ com.proto.tradefed.invocation.TestInvocationManagementGrpc.TestInvocationManagementImplBase
     ↳ com.android.tradefed.service.management.TestInvocationManagementServer


GRPC server helping to management test invocation and their lifecycle. This service isn't currently mandatory and only runs if configured with a port.

Summary

Public constructors

TestInvocationManagementServer(int port, ICommandScheduler commandScheduler, DeviceManagementGrpcServer deviceReservationManager)
TestInvocationManagementServer(ServerBuilder<?> serverBuilder, ICommandScheduler commandScheduler, DeviceManagementGrpcServer deviceReservationManager)
TestInvocationManagementServer(Server server, ICommandScheduler commandScheduler, DeviceManagementGrpcServer deviceReservationManager)

Public methods

void getInvocationDetail(InvocationDetailRequest request, StreamObserver<InvocationDetailResponse> responseObserver)
static Integer getPort()

Returns the port used by the server.

void shutdown()

Stop the grpc server.

void start()

Start the grpc server.

void submitTestCommand(NewTestCommandRequest request, StreamObserver<NewTestCommandResponse> responseObserver)

Public constructors

TestInvocationManagementServer

public TestInvocationManagementServer (int port, 
                ICommandScheduler commandScheduler, 
                DeviceManagementGrpcServer deviceReservationManager)

Parameters
port int

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

public TestInvocationManagementServer (ServerBuilder<?> serverBuilder, 
                ICommandScheduler commandScheduler, 
                DeviceManagementGrpcServer deviceReservationManager)

Parameters
serverBuilder ServerBuilder

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

public TestInvocationManagementServer (Server server, 
                ICommandScheduler commandScheduler, 
                DeviceManagementGrpcServer deviceReservationManager)

Parameters
server Server

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

Public methods

getInvocationDetail

public void getInvocationDetail (InvocationDetailRequest request, 
                StreamObserver<InvocationDetailResponse> responseObserver)

Parameters
request InvocationDetailRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

Returns the port used by the server.

Returns
Integer

shutdown

public void shutdown ()

Stop the grpc server.

start

public void start ()

Start the grpc server.

submitTestCommand

public void submitTestCommand (NewTestCommandRequest request, 
                StreamObserver<NewTestCommandResponse> responseObserver)

Parameters
request NewTestCommandRequest

responseObserver StreamObserver