CihazYönetimiGrpcServer

public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase

Java.lang.Nesne
🎃 com.proto.tradefed.device.DeviceManagementGrpc.DeviceManagementImplBase
  🎃 com.android.tradefed.service.management.DeviceManagementGrpcServer


Tradefed'ten cihaz rezerve edilmesine olanak tanıyan GRPC sunucusu.

Özet

Kamu inşaatçıları

DeviceManagementGrpcServer(int port, IDeviceManager deviceManager, ICommandScheduler scheduler)
DeviceManagementGrpcServer(ServerBuilder<?> serverBuilder, IDeviceManager deviceManager, ICommandScheduler scheduler)
DeviceManagementGrpcServer(Server server, IDeviceManager deviceManager, ICommandScheduler scheduler)

Herkese açık yöntemler

ITestDevice getDeviceFromReservation(String reservationId)
void getDevicesStatus(GetDevicesStatusRequest request, StreamObserver<GetDevicesStatusResponse> responseObserver)
static Integer getPort()

Sunucu tarafından kullanılan bağlantı noktasını döndürür.

void releaseReservation(ReleaseReservationRequest request, StreamObserver<ReleaseReservationResponse> responseObserver)
void reserveDevice(ReserveDeviceRequest request, StreamObserver<ReserveDeviceResponse> responseObserver)
void shutdown()

grpc sunucusunu durdurun.

void start()

grpc sunucusunu başlatın.

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

Kamu inşaatçıları

CihazYönetimiGrpcServer

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

Parametreler
port int

deviceManager IDeviceManager

scheduler ICommandScheduler

CihazYönetimiGrpcServer

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

Parametreler
serverBuilder ServerBuilder

deviceManager IDeviceManager

scheduler ICommandScheduler

CihazYönetimiGrpcServer

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

Parametreler
server Server

deviceManager IDeviceManager

scheduler ICommandScheduler

Herkese açık yöntemler

getDeviceFromReservation

public ITestDevice getDeviceFromReservation (String reservationId)

Parametreler
reservationId String

İlerlemeler
ITestDevice

getDevicesStatus

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

Parametreler
request GetDevicesStatusRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

Sunucu tarafından kullanılan bağlantı noktasını döndürür.

İlerlemeler
Integer

yayın rezervasyonu

public void releaseReservation (ReleaseReservationRequest request, 
                StreamObserver<ReleaseReservationResponse> responseObserver)

Parametreler
request ReleaseReservationRequest

responseObserver StreamObserver

rezervCihazı

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

Parametreler
request ReserveDeviceRequest

responseObserver StreamObserver

kapatmak

public void shutdown ()

grpc sunucusunu durdurun.

start

public void start ()

grpc sunucusunu başlatın.

kiralama

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

Parametreler
request StopLeasingRequest

responseObserver StreamObserver