TestInvocationManagementServer

public class TestInvocationManagementServer
extends TestInvocationManagementGrpc.TestInvocationManagementImplBase

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


協助管理測試叫用及其生命週期的 GRPC 伺服器。這項服務不屬於 ,而且只有在已設定通訊埠時才會執行。

摘要

巢狀類別

class TestInvocationManagementServer.InvocationInformation

 

公用建構函式

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

公用方法

void exitTradefed()

停止交易程序。

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

傳回伺服器使用的通訊埠。

void shutdown()

停止 gRPC 伺服器。

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

啟動 gRPC 伺服器。

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

公用建構函式

TestInvocationManagementServer

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

參數
port int

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

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

參數
serverBuilder ServerBuilder

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

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

參數
server Server

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

公用方法

exitTradefed

public void exitTradefed ()

停止交易程序。

getInvocationDetail

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

參數
request InvocationDetailRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

傳回伺服器使用的通訊埠。

傳回
Integer

關機

public void shutdown ()

停止 gRPC 伺服器。

關機貿易

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

參數
request ShutdownTradefedRequest

responseObserver StreamObserver

start

public void start ()

啟動 gRPC 伺服器。

停止叫用

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

參數
request StopInvocationRequest

responseObserver StreamObserver

提交測試指令

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

參數
request NewTestCommandRequest

responseObserver StreamObserver