DeviceManagementGrpcServer

public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase

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


GRPC-Server, der es ermöglicht, ein Gerät von Tradefed zu reservieren.

Zusammenfassung

Öffentliche Konstrukteure

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

Öffentliche Methoden

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

Gibt den vom Server verwendeten Port zurück.

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

Stoppen Sie den GrPC-Server.

void start ()

Starten Sie den grpc-Server.

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

Öffentliche Konstrukteure

DeviceManagementGrpcServer

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

Parameter
port int

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

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

Parameter
serverBuilder ServerBuilder

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

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

Parameter
server Server

deviceManager IDeviceManager

scheduler ICommandScheduler

Öffentliche Methoden

getDeviceFromReservation

public ITestDevice getDeviceFromReservation (String reservationId)

Parameter
reservationId String

Kehrt zurück
ITestDevice

getDevicesStatus

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

Parameter
request GetDevicesStatusRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

Gibt den vom Server verwendeten Port zurück.

Kehrt zurück
Integer

FreigabeReservierung

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

Parameter
request ReleaseReservationRequest

responseObserver StreamObserver

Reservegerät

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

Parameter
request ReserveDeviceRequest

responseObserver StreamObserver

stilllegen

public void shutdown ()

Stoppen Sie den GrPC-Server.

Anfang

public void start ()

Starten Sie den grpc-Server.

stopLeasing

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

Parameter
request StopLeasingRequest

responseObserver StreamObserver