DeviceManagementGrpcServer

public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase

java.lang.Object
   ↳ com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase
  com.android.tradefed.service.management.DeviceManagementGrpcServer


Serwer GRPC umożliwiający rezerwowanie urządzenia z Tradefed.

Podsumowanie

Konstruktory publiczne

DeviceManagementGrpcServer(int port, IDeviceManager deviceManager, ICommandScheduler scheduler)
DeviceManagementGrpcServer(Server server, IDeviceManager deviceManager, ICommandScheduler scheduler)
DeviceManagementGrpcServer(ServerBuilder<?> serverBuilder, IDeviceManager deviceManager, ICommandScheduler scheduler)

Metody publiczne

ITestDevice getDeviceFromReservation(String reservationId)
void getDevicesStatus(GetDevicesStatusRequest request, StreamObserver<GetDevicesStatusResponse> responseObserver)
static Integer getPort()

Zwraca port używany przez serwer.

void releaseReservation(ReleaseReservationRequest request, StreamObserver<ReleaseReservationResponse> responseObserver)
void reserveDevice(ReserveDeviceRequest request, StreamObserver<ReserveDeviceResponse> responseObserver)
void shutdown()

Zatrzymaj serwer grpc.

void start()

Uruchom serwer grpc.

void stopLeasing(StopLeasingRequest request, StreamObserver<StopLeasingResponse> responseObserver)

Konstruktory publiczne

Serwer zarządzania urządzeniami (GrpcServer)

public DeviceManagementGrpcServer (int port, 
                IDeviceManager deviceManager, 
                ICommandScheduler scheduler)

Parametry
port int

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

public DeviceManagementGrpcServer (Server server, 
                IDeviceManager deviceManager, 
                ICommandScheduler scheduler)

Parametry
server Server

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

public DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder, 
                IDeviceManager deviceManager, 
                ICommandScheduler scheduler)

Parametry
serverBuilder ServerBuilder

deviceManager IDeviceManager

scheduler ICommandScheduler

Metody publiczne

getDeviceFromRezerwacja

public ITestDevice getDeviceFromReservation (String reservationId)

Parametry
reservationId String

Zwroty
ITestDevice

getDeviceStatus

public void getDevicesStatus (GetDevicesStatusRequest request, 
                StreamObserver<GetDevicesStatusResponse> responseObserver)

Parametry
request GetDevicesStatusRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

Zwraca port używany przez serwer.

Zwroty
Integer

Rezerwacja wersji

public void releaseReservation (ReleaseReservationRequest request, 
                StreamObserver<ReleaseReservationResponse> responseObserver)

Parametry
request ReleaseReservationRequest

responseObserver StreamObserver

reserveDevice

public void reserveDevice (ReserveDeviceRequest request, 
                StreamObserver<ReserveDeviceResponse> responseObserver)

Parametry
request ReserveDeviceRequest

responseObserver StreamObserver

Wyłącz

public void shutdown ()

Zatrzymaj serwer grpc.

rozpocznij

public void start ()

Uruchom serwer grpc.

stopLeasing

public void stopLeasing (StopLeasingRequest request, 
                StreamObserver<StopLeasingResponse> responseObserver)

Parametry
request StopLeasingRequest

responseObserver StreamObserver