TestInvocationManagementServer
public
class
TestInvocationManagementServer
extends TestInvocationManagementGrpc.TestInvocationManagementImplBase
java.lang.Object
|
↳ |
com.proto.tradefed.invocation.TestInvocationManagementGrpc.TestInvocationManagementImplBase
|
|
↳ |
com.android.tradefed.service.management.TestInvocationManagementServer
|
O servidor GRPC ajuda a gerenciar a invocação de teste e o ciclo de vida dela. Esse serviço não é
obrigatório no momento e só é executado se configurado com uma porta.
Resumo
Métodos públicos |
void
|
exitTradefed()
Interrompa o processo de tradefed.
|
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 (Server server,
ICommandScheduler commandScheduler,
DeviceManagementGrpcServer deviceReservationManager)
Parâmetros |
server |
Server |
commandScheduler |
ICommandScheduler |
deviceReservationManager |
DeviceManagementGrpcServer |
TestInvocationManagementServer
public TestInvocationManagementServer (ServerBuilder<?> serverBuilder,
ICommandScheduler commandScheduler,
DeviceManagementGrpcServer deviceReservationManager)
Parâmetros |
serverBuilder |
ServerBuilder |
commandScheduler |
ICommandScheduler |
deviceReservationManager |
DeviceManagementGrpcServer |
Métodos públicos
exitTradefed
public void exitTradefed ()
Interrompa o processo de tradefed.
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.
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 |