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

Nested classes

class TestInvocationManagementServer.InvocationInformation

 

Public constructors

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

Public methods

void exitTradefed()

Stop the tradefed process.

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

Returns the port used by the server.

void shutdown()

Stop the grpc server.

void shutdownTradefed(ShutdownTradefedRequest request, StreamObserver<ShutdownTradefedResponse> responseObserver)
void start()

Start the grpc server.

void stopInvocation(StopInvocationRequest request, StreamObserver<StopInvocationResponse> responseObserver)
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 (Server server, 
                ICommandScheduler commandScheduler, 
                DeviceManagementGrpcServer deviceReservationManager)

Parameters
server Server

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

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

Parameters
serverBuilder ServerBuilder

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

Public methods

exitTradefed

public void exitTradefed ()

Stop the tradefed process.

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.

shutdownTradefed

public void shutdownTradefed (ShutdownTradefedRequest request, 
                StreamObserver<ShutdownTradefedResponse> responseObserver)

Parameters
request ShutdownTradefedRequest

responseObserver StreamObserver

start

public void start ()

Start the grpc server.

stopInvocation

public void stopInvocation (StopInvocationRequest request, 
                StreamObserver<StopInvocationResponse> responseObserver)

Parameters
request StopInvocationRequest

responseObserver StreamObserver

submitTestCommand

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

Parameters
request NewTestCommandRequest

responseObserver StreamObserver