TestInvocationManagementServer
public
class
TestInvocationManagementServer
extends TestInvocationManagementGrpc.TestInvocationManagementImplBase
java.lang.Object |
↳ |
com.proto.tradefed.invocation.TestInvocationManagementGrpc.TestInvocationManagementImplBase
|
|
↳ |
com.android.tradefed.service.management.TestInvocationManagementServer
|
GRPC 伺服器可協助管理測試叫用作業和測試叫用作業的生命週期。這項服務目前非必要,而且只會在已設定通訊埠的情況下執行。
摘要
公用方法 |
void
|
exitTradefed()
停止 tradefed 程序。
|
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 (Server server,
ICommandScheduler commandScheduler,
DeviceManagementGrpcServer deviceReservationManager)
參數 |
server |
Server |
commandScheduler |
ICommandScheduler |
deviceReservationManager |
DeviceManagementGrpcServer |
TestInvocationManagementServer
public TestInvocationManagementServer (ServerBuilder<?> serverBuilder,
ICommandScheduler commandScheduler,
DeviceManagementGrpcServer deviceReservationManager)
參數 |
serverBuilder |
ServerBuilder |
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 ()
傳回伺服器使用的連接埠。
關機
public void shutdown ()
停止 grpc 伺服器。
shutdownTradefed
public void shutdownTradefed (ShutdownTradefedRequest request,
StreamObserver<ShutdownTradefedResponse> responseObserver)
參數 |
request |
ShutdownTradefedRequest |
responseObserver |
StreamObserver |
start
public void start ()
啟動 grpc 伺服器。
stopInvocation
public void stopInvocation (StopInvocationRequest request,
StreamObserver<StopInvocationResponse> responseObserver)
參數 |
request |
StopInvocationRequest |
responseObserver |
StreamObserver |
submitTestCommand
public void submitTestCommand (NewTestCommandRequest request,
StreamObserver<NewTestCommandResponse> responseObserver)
參數 |
request |
NewTestCommandRequest |
responseObserver |
StreamObserver |