DeviceManagementGrpcServer
public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase
java.lang.object | ||
↳ | com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase | |
↳ | com.android.tradefed.service.management.DeviceManagementGrpcServer |
سرور GRPC اجازه رزرو دستگاه از Tradefed را می دهد.
خلاصه
سازندگان عمومی | |
---|---|
DeviceManagementGrpcServer (int port, IDeviceManager deviceManager, ICommandScheduler scheduler) | |
DeviceManagementGrpcServer (Server server, IDeviceManager deviceManager, ICommandScheduler scheduler) | |
DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder, IDeviceManager deviceManager, ICommandScheduler scheduler) |
روش های عمومی | |
---|---|
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 |
برمی گرداند | |
---|---|
ITestDevice |
getDevicesStatus
public void getDevicesStatus (GetDevicesStatusRequest request, StreamObserver<GetDevicesStatusResponse> responseObserver)
پارامترها | |
---|---|
request | GetDevicesStatusRequest |
responseObserver | StreamObserver |
getPort
public static Integer getPort ()
پورت استفاده شده توسط سرور را برمی گرداند.
برمی گرداند | |
---|---|
Integer |
انتشار رزرو
public void releaseReservation (ReleaseReservationRequest request, StreamObserver<ReleaseReservationResponse> responseObserver)
پارامترها | |
---|---|
request | ReleaseReservationRequest |
responseObserver | StreamObserver |
رزرو دستگاه
public void reserveDevice (ReserveDeviceRequest request, StreamObserver<ReserveDeviceResponse> responseObserver)
پارامترها | |
---|---|
request | ReserveDeviceRequest |
responseObserver | StreamObserver |
خاموش شدن
public void shutdown ()
سرور grpc را متوقف کنید.
شروع کنید
public void start ()
سرور grpc را راه اندازی کنید.
توقف لیزینگ
public void stopLeasing (StopLeasingRequest request, StreamObserver<StopLeasingResponse> responseObserver)
پارامترها | |
---|---|
request | StopLeasingRequest |
responseObserver | StreamObserver |
DeviceManagementGrpcServer
public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase
java.lang.object | ||
↳ | com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase | |
↳ | com.android.tradefed.service.management.DeviceManagementGrpcServer |
سرور GRPC اجازه رزرو دستگاه از Tradefed را می دهد.
خلاصه
سازندگان عمومی | |
---|---|
DeviceManagementGrpcServer (int port, IDeviceManager deviceManager, ICommandScheduler scheduler) | |
DeviceManagementGrpcServer (Server server, IDeviceManager deviceManager, ICommandScheduler scheduler) | |
DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder, IDeviceManager deviceManager, ICommandScheduler scheduler) |
روش های عمومی | |
---|---|
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 |
برمی گرداند | |
---|---|
ITestDevice |
getDevicesStatus
public void getDevicesStatus (GetDevicesStatusRequest request, StreamObserver<GetDevicesStatusResponse> responseObserver)
پارامترها | |
---|---|
request | GetDevicesStatusRequest |
responseObserver | StreamObserver |
getPort
public static Integer getPort ()
پورت استفاده شده توسط سرور را برمی گرداند.
برمی گرداند | |
---|---|
Integer |
انتشار رزرو
public void releaseReservation (ReleaseReservationRequest request, StreamObserver<ReleaseReservationResponse> responseObserver)
پارامترها | |
---|---|
request | ReleaseReservationRequest |
responseObserver | StreamObserver |
رزرو دستگاه
public void reserveDevice (ReserveDeviceRequest request, StreamObserver<ReserveDeviceResponse> responseObserver)
پارامترها | |
---|---|
request | ReserveDeviceRequest |
responseObserver | StreamObserver |
خاموش شدن
public void shutdown ()
سرور grpc را متوقف کنید.
شروع کنید
public void start ()
سرور grpc را راه اندازی کنید.
توقف لیزینگ
public void stopLeasing (StopLeasingRequest request, StreamObserver<StopLeasingResponse> responseObserver)
پارامترها | |
---|---|
request | StopLeasingRequest |
responseObserver | StreamObserver |