Zadbaj o dobrą organizację dzięki kolekcji Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.

DeviceManagementGrpcServer

public class DeviceManagementGrpcServer
extends DeviceManagementGrpc.DeviceManagementImplBase

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


Serwer GRPC umożliwiający rezerwację urządzenia od Tradefed.

Streszczenie

Konstruktorzy publiczni

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

Metody publiczne

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

Zwraca port używany przez serwer.

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

Zatrzymaj serwer grpc.

void start ()

Uruchom serwer grpc.

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

Konstruktorzy publiczni

DeviceManagementGrpcServer

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

Parametry
port int

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

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

Parametry
serverBuilder ServerBuilder

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

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

Parametry
server Server

deviceManager IDeviceManager

scheduler ICommandScheduler

Metody publiczne

getDeviceFromReservation

public ITestDevice getDeviceFromReservation (String reservationId)

Parametry
reservationId String

Zwroty
ITestDevice

getDevicesStatus

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

Parametry
request GetDevicesStatusRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

Zwraca port używany przez serwer.

Zwroty
Integer

zwolnienieRezerwacja

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

Parametry
request ReleaseReservationRequest

responseObserver StreamObserver

ReserveDevice

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

Parametry
request ReserveDeviceRequest

responseObserver StreamObserver

zamknąć

public void shutdown ()

Zatrzymaj serwer grpc.

początek

public void start ()

Uruchom serwer grpc.

stopLeasing

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

Parametry
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


Serwer GRPC umożliwiający rezerwację urządzenia od Tradefed.

Streszczenie

Konstruktorzy publiczni

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

Metody publiczne

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

Zwraca port używany przez serwer.

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

Zatrzymaj serwer grpc.

void start ()

Uruchom serwer grpc.

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

Konstruktorzy publiczni

DeviceManagementGrpcServer

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

Parametry
port int

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

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

Parametry
serverBuilder ServerBuilder

deviceManager IDeviceManager

scheduler ICommandScheduler

DeviceManagementGrpcServer

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

Parametry
server Server

deviceManager IDeviceManager

scheduler ICommandScheduler

Metody publiczne

getDeviceFromReservation

public ITestDevice getDeviceFromReservation (String reservationId)

Parametry
reservationId String

Zwroty
ITestDevice

getDevicesStatus

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

Parametry
request GetDevicesStatusRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

Zwraca port używany przez serwer.

Zwroty
Integer

zwolnienieRezerwacja

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

Parametry
request ReleaseReservationRequest

responseObserver StreamObserver

ReserveDevice

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

Parametry
request ReserveDeviceRequest

responseObserver StreamObserver

zamknąć

public void shutdown ()

Zatrzymaj serwer grpc.

początek

public void start ()

Uruchom serwer grpc.

stopLeasing

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

Parametry
request StopLeasingRequest

responseObserver StreamObserver