Servidor de gestión de invocación de prueba

public class TestInvocationManagementServer
extends TestInvocationManagementGrpc.TestInvocationManagementImplBase

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


Servidor GRPC que ayuda a gestionar la invocación de pruebas y su ciclo de vida. Actualmente, este servicio no es obligatorio y solo se ejecuta si se configura con un puerto.

Resumen

clases anidadas

class TestInvocationManagementServer.InvocationInformation

Constructores 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 ()

Detenga el proceso de negociación.

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

Devuelve el puerto utilizado por el servidor.

void shutdown ()

Detenga el servidor grpc.

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

Inicie el servidor grpc.

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

Constructores públicos

Servidor de gestión de invocación de prueba

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

Parámetros
port int

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

Servidor de gestión de invocación de prueba

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

Parámetros
serverBuilder ServerBuilder

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

Servidor de gestión de invocación de prueba

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

Parámetros
server Server

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

Métodos públicos

salidaTradefed

public void exitTradefed ()

Detenga el proceso de negociación.

obtener detalle de invocación

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

Parámetros
request InvocationDetailRequest

responseObserver StreamObserver

obtener puerto

public static Integer getPort ()

Devuelve el puerto utilizado por el servidor.

Devoluciones
Integer

cerrar

public void shutdown ()

Detenga el servidor grpc.

apagadoTradefed

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

Parámetros
request ShutdownTradefedRequest

responseObserver StreamObserver

comenzar

public void start ()

Inicie el servidor grpc.

detenerInvocación

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

Parámetros
request StopInvocationRequest

responseObserver StreamObserver

enviarTestCommand

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

Parámetros
request NewTestCommandRequest

responseObserver StreamObserver