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

الأساليب العامة

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 (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

الأساليب العامة

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