डिवाइस प्रबंधनGrpcServer

public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase

java.lang.Object
com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase
  com.android.tradefed.service.management.DeviceManagementGrpcServer


ट्रेडfed से डिवाइस बुक करने की अनुमति देने वाला GRPC सर्वर.

खास जानकारी

सार्वजनिक कंस्ट्रक्टर

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)

सार्वजनिक कंस्ट्रक्टर

डिवाइस प्रबंधनGrpcServer

public DeviceManagementGrpcServer (int port, 
                IDeviceManager deviceManager, 
                ICommandScheduler scheduler)

पैरामीटर
port int

deviceManager IDeviceManager

scheduler ICommandScheduler

डिवाइस प्रबंधनGrpcServer

public DeviceManagementGrpcServer (ServerBuilder<?> serverBuilder, 
                IDeviceManager deviceManager, 
                ICommandScheduler scheduler)

पैरामीटर
serverBuilder ServerBuilder

deviceManager IDeviceManager

scheduler ICommandScheduler

डिवाइस प्रबंधनGrpcServer

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

पैरामीटर
server Server

deviceManager IDeviceManager

scheduler ICommandScheduler

सार्वजनिक तरीके

'डिवाइस से नतीजे पाएं' बुकिंग

public ITestDevice getDeviceFromReservation (String reservationId)

पैरामीटर
reservationId String

रिटर्न
ITestDevice

getdeviceStatus की सुविधा

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