Mantieni tutto organizzato con le raccolte Salva e classifica i contenuti in base alle tue preferenze.

TestInvocationManagementServer

public class TestInvocationManagementServer
extends TestInvocationManagementGrpc.TestInvocationManagementImplBase

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


Server GRPC che aiuta a gestire l'invocazione dei test e il loro ciclo di vita. Questo servizio non è attualmente obbligatorio e viene eseguito solo se configurato con una porta.

Riepilogo

Costruttori pubblici

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

Metodi pubblici

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

Restituisce la porta utilizzata dal server.

void shutdown ()

Arresta il server grpc.

void start ()

Avvia il server grpc.

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

Costruttori pubblici

TestInvocationManagementServer

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

Parametri
port int

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

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

Parametri
serverBuilder ServerBuilder

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

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

Parametri
server Server

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

Metodi pubblici

getInvocationDetail

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

Parametri
request InvocationDetailRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

Restituisce la porta utilizzata dal server.

ritorna
Integer

spegnimento

public void shutdown ()

Arresta il server grpc.

inizio

public void start ()

Avvia il server grpc.

submitTestCommand

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

Parametri
request NewTestCommandRequest

responseObserver StreamObserver