DeviceManagementGrpcServer
public
class
DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase
java.lang.Object의 클래스
|
↳ |
com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase의
|
|
↳ |
com.android.tradefed.service.management.DeviceManagementGrpcServer
|
Tradefed에서 기기를 예약할 수 있는 GRPC 서버
요약
공개 메서드 |
ITestDevice
|
getDeviceFromReservation(String reservationId)
|
void
|
getDevicesStatus(GetDevicesStatusRequest request, StreamObserver<GetDevicesStatusResponse> responseObserver)
|
static
Integer
|
getPort()
서버에서 사용하는 포트를 반환합니다.
|
void
|
releaseReservation(ReleaseReservationRequest request, StreamObserver<ReleaseReservationResponse> responseObserver)
|
void
|
reserveDevice(ReserveDeviceRequest request, StreamObserver<ReserveDeviceResponse> responseObserver)
|
void
|
shutdown()
grpc 서버를 중지합니다.
|
void
|
start()
grpc 서버를 시작합니다.
|
void
|
stopLeasing(StopLeasingRequest request, StreamObserver<StopLeasingResponse> responseObserver)
|
공개 생성자
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (int port,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
매개변수 |
port |
int |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
매개변수 |
serverBuilder |
ServerBuilder |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (Server server,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
매개변수 |
server |
Server |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
공개 메서드
getDeviceFrom예약
public ITestDevice getDeviceFromReservation (String reservationId)
매개변수 |
reservationId |
String |
getDevicesStatus
public void getDevicesStatus (GetDevicesStatusRequest request,
StreamObserver<GetDevicesStatusResponse> responseObserver)
매개변수 |
request |
GetDevicesStatusRequest |
responseObserver |
StreamObserver |
getPort
public static Integer getPort ()
서버에서 사용하는 포트를 반환합니다.
출시 예약
public void releaseReservation (ReleaseReservationRequest request,
StreamObserver<ReleaseReservationResponse> responseObserver)
매개변수 |
request |
ReleaseReservationRequest |
responseObserver |
StreamObserver |
예약 기기
public void reserveDevice (ReserveDeviceRequest request,
StreamObserver<ReserveDeviceResponse> responseObserver)
매개변수 |
request |
ReserveDeviceRequest |
responseObserver |
StreamObserver |
종료
public void shutdown ()
grpc 서버를 중지합니다.
start
public void start ()
grpc 서버를 시작합니다.
임대 중지
public void stopLeasing (StopLeasingRequest request,
StreamObserver<StopLeasingResponse> responseObserver)
매개변수 |
request |
StopLeasingRequest |
responseObserver |
StreamObserver |