Stay organized with collections
Save and categorize content based on your preferences.
DeviceManagementGrpcServer
public
class
DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase
java.lang.Object
|
↳ |
com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase
|
|
↳ |
com.android.tradefed.service.management.DeviceManagementGrpcServer
|
GRPC server allowing to reserve a device from Tradefed.
Summary
Public methods |
ITestDevice
|
getDeviceFromReservation(String reservationId)
|
void
|
getDevicesStatus(GetDevicesStatusRequest request, StreamObserver<GetDevicesStatusResponse> responseObserver)
|
static
Integer
|
getPort()
Returns the port used by the server.
|
void
|
releaseReservation(ReleaseReservationRequest request, StreamObserver<ReleaseReservationResponse> responseObserver)
|
void
|
reserveDevice(ReserveDeviceRequest request, StreamObserver<ReserveDeviceResponse> responseObserver)
|
void
|
shutdown()
Stop the grpc server.
|
void
|
start()
Start the grpc server.
|
void
|
stopLeasing(StopLeasingRequest request, StreamObserver<StopLeasingResponse> responseObserver)
|
Public constructors
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (int port,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parameters |
port |
int |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (Server server,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parameters |
server |
Server |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parameters |
serverBuilder |
ServerBuilder |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
Public methods
getDeviceFromReservation
public ITestDevice getDeviceFromReservation (String reservationId)
Parameters |
reservationId |
String |
getDevicesStatus
public void getDevicesStatus (GetDevicesStatusRequest request,
StreamObserver<GetDevicesStatusResponse> responseObserver)
Parameters |
request |
GetDevicesStatusRequest |
responseObserver |
StreamObserver |
getPort
public static Integer getPort ()
Returns the port used by the server.
releaseReservation
public void releaseReservation (ReleaseReservationRequest request,
StreamObserver<ReleaseReservationResponse> responseObserver)
Parameters |
request |
ReleaseReservationRequest |
responseObserver |
StreamObserver |
reserveDevice
public void reserveDevice (ReserveDeviceRequest request,
StreamObserver<ReserveDeviceResponse> responseObserver)
Parameters |
request |
ReserveDeviceRequest |
responseObserver |
StreamObserver |
shutdown
public void shutdown ()
Stop the grpc server.
start
public void start ()
Start the grpc server.
stopLeasing
public void stopLeasing (StopLeasingRequest request,
StreamObserver<StopLeasingResponse> responseObserver)
Parameters |
request |
StopLeasingRequest |
responseObserver |
StreamObserver |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-10-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-08 UTC."],[],[]]