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

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

Tradefed 프로세스를 중지합니다.

getInvocationDetail

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

매개변수
request InvocationDetailRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

서버에서 사용하는 포트를 반환합니다.

반환 값
Integer

종료

public void shutdown ()

grpc 서버를 중지합니다.

ShutTradefed

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