DeviceManagementGrpcServer

public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase

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


שרת GRPC מאפשר להזמין מכשיר מ-Trended.

סיכום

יוצרים ציבוריים

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

releaseReservation

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