DeviceManagementGrpcServer

public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase

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


GRPC-Server, mit dem ein Gerät bei Tradefed reserviert werden kann.

Zusammenfassung

Öffentliche Konstruktoren

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()

Beenden Sie den GRPC-Server.

void start()

Starten Sie den gRPC-Server.

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

Öffentliche Konstruktoren

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

Returns
ITestDevice

getGeräteStatus

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.

Returns
Integer

ReleaseReservierung

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

Parameter
request ReleaseReservationRequest

responseObserver StreamObserver

Gerät reservieren

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

Parameter
request ReserveDeviceRequest

responseObserver StreamObserver

herunterfahren

public void shutdown ()

Beenden Sie den GRPC-Server.

start

public void start ()

Starten Sie den gRPC-Server.

Leasing beenden

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

Parameter
request StopLeasingRequest

responseObserver StreamObserver