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

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

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

public ITestDevice getDeviceFromReservation (String reservationId)

पैरामीटर
reservationId String

रिटर्न
ITestDevice

getdeviceStatus की सुविधा

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

reserveDevice

public void reserveDevice (ReserveDeviceRequest request, 
                StreamObserver<ReserveDeviceResponse> responseObserver)

पैरामीटर
request ReserveDeviceRequest

responseObserver StreamObserver

बंद करना

public void shutdown ()

grpc सर्वर बंद करें.

शुरू करें

public void start ()

grpc सर्वर शुरू करें.

stopLeasing

public void stopLeasing (StopLeasingRequest request, 
                StreamObserver<StopLeasingResponse> responseObserver)

पैरामीटर
request StopLeasingRequest

responseObserver StreamObserver