DeviceManagementGrpcServer
public
class
DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase
java.lang.Object
|
↳ |
com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase
|
|
↳ |
com.android.tradefed.service.management.DeviceManagementGrpcServer
|
שרת GRPC מאפשר להזמין מכשיר מ-Trended.
סיכום
שיטות ציבוריות |
ITestDevice
|
getDeviceFromReservation(String reservationId)
|
void
|
getDevicesStatus(GetDevicesStatusRequest request, StreamObserver<GetDevicesStatusResponse> responseObserver)
|
static
Integer
|
getPort()
מחזירה את היציאה שבה משתמש השרת.
|
void
|
releaseReservation(ReleaseReservationRequest request, StreamObserver<ReleaseReservationResponse> responseObserver)
|
void
|
reserveDevice(ReserveDeviceRequest request, StreamObserver<ReserveDeviceResponse> responseObserver)
|
void
|
shutdown()
מפסיקים את שרת ה-grpc.
|
void
|
start()
מפעילים את שרת ה-GRPC.
|
void
|
stopLeasing(StopLeasingRequest request, StreamObserver<StopLeasingResponse> responseObserver)
|
בנאים ציבוריים
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (int port,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
פרמטרים |
port |
int |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (Server server,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
פרמטרים |
server |
Server |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
DeviceManagementGrpcServer
public DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
פרמטרים |
serverBuilder |
ServerBuilder |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
שיטות ציבוריות
getDeviceFromReservation
public ITestDevice getDeviceFromReservation (String reservationId)
פרמטרים |
reservationId |
String |
getDevicesStatus
public void getDevicesStatus (GetDevicesStatusRequest request,
StreamObserver<GetDevicesStatusResponse> responseObserver)
פרמטרים |
request |
GetDevicesStatusRequest |
responseObserver |
StreamObserver |
getPort
public static Integer getPort ()
מחזירה את היציאה שבה משתמש השרת.
releaseReservation
public void releaseReservation (ReleaseReservationRequest request,
StreamObserver<ReleaseReservationResponse> responseObserver)
פרמטרים |
request |
ReleaseReservationRequest |
responseObserver |
StreamObserver |
reserveDevice
public void reserveDevice (ReserveDeviceRequest request,
StreamObserver<ReserveDeviceResponse> responseObserver)
פרמטרים |
request |
ReserveDeviceRequest |
responseObserver |
StreamObserver |
כיבוי
public void shutdown ()
עוצרים את שרת ה-GRPC.
התחל
public void start ()
מפעילים את שרת ה-GRPC.
stopLeasing
public void stopLeasing (StopLeasingRequest request,
StreamObserver<StopLeasingResponse> responseObserver)
פרמטרים |
request |
StopLeasingRequest |
responseObserver |
StreamObserver |