DeviceManagementGrpcServer
public
class
DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase
java.lang.Object
|
↳ |
com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase
|
|
↳ |
com.android.tradefed.service.management.DeviceManagementGrpcServer
|
Es un servidor de gRPC que permite reservar un dispositivo desde Tradefed.
Resumen
Métodos públicos |
ITestDevice
|
getDeviceFromReservation(String reservationId)
|
void
|
getDevicesStatus(GetDevicesStatusRequest request, StreamObserver<GetDevicesStatusResponse> responseObserver)
|
static
Integer
|
getPort()
Muestra el puerto que usa el servidor.
|
void
|
releaseReservation(ReleaseReservationRequest request, StreamObserver<ReleaseReservationResponse> responseObserver)
|
void
|
reserveDevice(ReserveDeviceRequest request, StreamObserver<ReserveDeviceResponse> responseObserver)
|
void
|
shutdown()
Detén el servidor de gRPC.
|
void
|
start()
Inicia el servidor de gRPC.
|
void
|
stopLeasing(StopLeasingRequest request, StreamObserver<StopLeasingResponse> responseObserver)
|
Constructores públicos
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (int port,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parámetros |
port |
int |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
ServidorDeviceManagementGrpcServer
public DeviceManagementGrpcServer (Server server,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parámetros |
server |
Server |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
ServidorDeviceManagementGrpcServer
public DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parámetros |
serverBuilder |
ServerBuilder |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
Métodos públicos
getDeviceFromReservation
public ITestDevice getDeviceFromReservation (String reservationId)
Parámetros |
reservationId |
String |
getDevicesStatus
public void getDevicesStatus (GetDevicesStatusRequest request,
StreamObserver<GetDevicesStatusResponse> responseObserver)
Parámetros |
request |
GetDevicesStatusRequest |
responseObserver |
StreamObserver |
getPort
public static Integer getPort ()
Devuelve el puerto utilizado por el servidor.
lanzamientoReserva
public void releaseReservation (ReleaseReservationRequest request,
StreamObserver<ReleaseReservationResponse> responseObserver)
Parámetros |
request |
ReleaseReservationRequest |
responseObserver |
StreamObserver |
reserveDevice
public void reserveDevice (ReserveDeviceRequest request,
StreamObserver<ReserveDeviceResponse> responseObserver)
Parámetros |
request |
ReserveDeviceRequest |
responseObserver |
StreamObserver |
apagado
public void shutdown ()
Detén el servidor de gRPC.
start
public void start ()
Inicia el servidor de gRPC.
stopLeasing
public void stopLeasing (StopLeasingRequest request,
StreamObserver<StopLeasingResponse> responseObserver)
Parámetros |
request |
StopLeasingRequest |
responseObserver |
StreamObserver |