TestInvocationManagementServer

public class TestInvocationManagementServer
extends TestInvocationManagementGrpc.TestInvocationManagementImplBase

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


Servidor GRPC que ajuda no gerenciamento da invocação de testes e do ciclo de vida deles. Este serviço não está é obrigatório no momento e só é executado se configurado com uma porta.

Resumo

Classes aninhadas

class TestInvocationManagementServer.InvocationInformation

 

Construtores públicos

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

Métodos públicos

void exitTradefed()

Interrompa o processo de negociação.

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

Retorna a porta usada pelo servidor.

void shutdown()

Pare o servidor grpc.

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

Inicie o servidor grpc.

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

Construtores públicos

TestInvocationManagementServer

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

Parâmetros
port int

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

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

Parâmetros
serverBuilder ServerBuilder

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

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

Parâmetros
server Server

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

Métodos públicos

sairTradefed

public void exitTradefed ()

Interrompa o processo de negociação.

getInvocationDetail

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

Parâmetros
request InvocationDetailRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

Retorna a porta usada pelo servidor.

Retorna
Integer

encerramento

public void shutdown ()

Pare o servidor grpc.

desligamentoTradefed

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

Parâmetros
request ShutdownTradefedRequest

responseObserver StreamObserver

start

public void start ()

Inicie o servidor grpc.

stopInvocation

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

Parâmetros
request StopInvocationRequest

responseObserver StreamObserver

submitTestCommand

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

Parâmetros
request NewTestCommandRequest

responseObserver StreamObserver