DeviceManagementGrpcServer

public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase

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


Serveur gRPC permettant de réserver un appareil auprès de Tradefed.

Résumé

Constructeurs publics

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

Méthodes publiques

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

Renvoie le port utilisé par le serveur.

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

Arrêtez le serveur grpc.

void start()

Démarrez le serveur grpc.

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

Constructeurs publics

DeviceManagementGrpcServer

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

Paramètres
port int

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

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

Paramètres
serverBuilder ServerBuilder

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

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

Paramètres
server Server

deviceManager IDeviceManager

scheduler ICommandScheduler

Méthodes publiques

getDeviceFromRéservation

public ITestDevice getDeviceFromReservation (String reservationId)

Paramètres
reservationId String

Renvoie
ITestDevice

getDevicesStatus

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

Paramètres
request GetDevicesStatusRequest

responseObserver StreamObserver

GetPort

public static Integer getPort ()

Renvoie le port utilisé par le serveur.

Renvoie
Integer

releaseRéservation

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

Paramètres
request ReleaseReservationRequest

responseObserver StreamObserver

réserverAppareil

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

Paramètres
request ReserveDeviceRequest

responseObserver StreamObserver

arrêter

public void shutdown ()

Arrêtez le serveur grpc.

départ

public void start ()

Démarrez le serveur grpc.

stopLease

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

Paramètres
request StopLeasingRequest

responseObserver StreamObserver