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.

Sommaire

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

getDeviceFromReservation

public ITestDevice getDeviceFromReservation (String reservationId)

Paramètres
reservationId String

Retour
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.

Retour
Integer

libérationRéservation

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

Paramètres
request ReleaseReservationRequest

responseObserver StreamObserver

reserveDevice

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

Paramètres
request ReserveDeviceRequest

responseObserver StreamObserver

fermer

public void shutdown ()

Arrêtez le serveur grpc.

début

public void start ()

Démarrez le serveur grpc.

stopLeasing

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

Paramètres
request StopLeasingRequest

responseObserver StreamObserver