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 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 Konstruktoren
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (int port,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parameter |
port |
int |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (Server server,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parameter |
server |
Server |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parameter |
serverBuilder |
ServerBuilder |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
Öffentliche Methoden
getDeviceFromReservation
public ITestDevice getDeviceFromReservation (String reservationId)
Parameter |
reservationId |
String |
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.
ReleaseReservierung
public void releaseReservation (ReleaseReservationRequest request,
StreamObserver<ReleaseReservationResponse> responseObserver)
Parameter |
request |
ReleaseReservationRequest |
responseObserver |
StreamObserver |
reserveDevice
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.
stopLeasing
public void stopLeasing (StopLeasingRequest request,
StreamObserver<StopLeasingResponse> responseObserver)
Parameter |
request |
StopLeasingRequest |
responseObserver |
StreamObserver |