DeviceManagementGrpcServer
public
class
DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase
java.lang.Object
|
\t |
com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase
|
|
↳ |
com.android.tradefed.service.management.DeviceManagementGrpcServer
|
Tradefed'den cihaz rezerve edilmesine olanak tanıyan GRPC sunucusu.
Özet
Herkese açık yöntemler |
ITestDevice
|
getDeviceFromReservation(String reservationId)
|
void
|
getDevicesStatus(GetDevicesStatusRequest request, StreamObserver<GetDevicesStatusResponse> responseObserver)
|
static
Integer
|
getPort()
Sunucu tarafından kullanılan bağlantı noktasını döndürür.
|
void
|
releaseReservation(ReleaseReservationRequest request, StreamObserver<ReleaseReservationResponse> responseObserver)
|
void
|
reserveDevice(ReserveDeviceRequest request, StreamObserver<ReserveDeviceResponse> responseObserver)
|
void
|
shutdown()
gRPC sunucusunu durdurun.
|
void
|
start()
Grpc sunucusunu başlatın.
|
void
|
stopLeasing(StopLeasingRequest request, StreamObserver<StopLeasingResponse> responseObserver)
|
Herkese açık kurucular
CihazYönetimiGrpcServer
public DeviceManagementGrpcServer (int port,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parametreler |
port |
int |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
CihazYönetimiGrpcServer
public DeviceManagementGrpcServer (Server server,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parametreler |
server |
Server |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
CihazYönetimiGrpcServer
public DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder,
IDeviceManager deviceManager,
ICommandScheduler scheduler)
Parametreler |
serverBuilder |
ServerBuilder |
deviceManager |
IDeviceManager |
scheduler |
ICommandScheduler |
Herkese açık yöntemler
getDeviceFromReservation
public ITestDevice getDeviceFromReservation (String reservationId)
Parametreler |
reservationId |
String |
getDevicesStatus
public void getDevicesStatus (GetDevicesStatusRequest request,
StreamObserver<GetDevicesStatusResponse> responseObserver)
Parametreler |
request |
GetDevicesStatusRequest |
responseObserver |
StreamObserver |
getPort
public static Integer getPort ()
Sunucu tarafından kullanılan bağlantı noktasını döndürür.
releaseReservation
public void releaseReservation (ReleaseReservationRequest request,
StreamObserver<ReleaseReservationResponse> responseObserver)
Parametreler |
request |
ReleaseReservationRequest |
responseObserver |
StreamObserver |
reserveDevice
public void reserveDevice (ReserveDeviceRequest request,
StreamObserver<ReserveDeviceResponse> responseObserver)
Parametreler |
request |
ReserveDeviceRequest |
responseObserver |
StreamObserver |
kapatmak
public void shutdown ()
grpc sunucusunu durdurun.
start
public void start ()
grpc sunucusunu başlatın.
kiralama
public void stopLeasing (StopLeasingRequest request,
StreamObserver<StopLeasingResponse> responseObserver)
Parametreler |
request |
StopLeasingRequest |
responseObserver |
StreamObserver |