خادم 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(ServerBuilder<?> serverBuilder, IDeviceManager deviceManager, ICommandScheduler scheduler)
DeviceManagementGrpcServer(Server server, 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 (ServerBuilder<?> serverBuilder, 
                IDeviceManager deviceManager, 
                ICommandScheduler scheduler)

المعلمات
serverBuilder ServerBuilder

deviceManager IDeviceManager

scheduler ICommandScheduler

خادم DeviceManagementGrpcServer

public DeviceManagementGrpcServer (Server server, 
                IDeviceManager deviceManager, 
                ICommandScheduler scheduler)

المعلمات
server Server

deviceManager IDeviceManager

scheduler ICommandScheduler

الطرق العامة

الحصول على جهاز من الحجز

public ITestDevice getDeviceFromReservation (String reservationId)

المعلمات
reservationId String

المرتجعات
ITestDevice

الحصول على حالة الأجهزة

public void getDevicesStatus (GetDevicesStatusRequest request, 
                StreamObserver<GetDevicesStatusResponse> responseObserver)

المعلمات
request GetDevicesStatusRequest

responseObserver StreamObserver

الحصول على بورت

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