TradefedFeatureServer

public class TradefedFeatureServer
extends TradefedInformationGrpc.TradefedInformationImplBase

java.lang.Object
   ↳ com.proto.tradefed.feature.TradefedInformationGrpc.TradefedInformationImplBase
     ↳ com.android.tradefed.service.TradefedFeatureServer


Serwer, który odpowiada na żądania dotyczące funkcji wyzwalających.

Podsumowanie

Stałe

String SERVER_REFERENCE

String TEST_INFORMATION_OBJECT

String TF_SERVICE_PORT

Konstruktory publiczne

TradefedFeatureServer()

Metody publiczne

static int getPort()

Zwraca port używany przez serwer.

String registerInvocation(IConfiguration config, ThreadGroup tg, List<ICommandScheduler.IScheduledInvocationListener> listeners)

Rejestrowanie wywołania z unikalnym odwołaniem, które można wysłać jako zapytanie.

void shutdown()

Zatrzymaj serwer grpc.

void start()

Uruchom serwer gRPC, aby nasłuchiwać żądań.

void triggerFeature(FeatureRequest request, StreamObserver<FeatureResponse> responseObserver)
void unregisterInvocation(IConfiguration reference)

Wyrejestrowuje wywołanie na podstawie jego konfiguracji.

Stałe

SERVER_REFERENCE

public static final String SERVER_REFERENCE

Wartość stała: "SERVER_REFERENCE"

TEST_INFORMATION_OBJECT

public static final String TEST_INFORMATION_OBJECT

Wartość stała: "TEST_INFORMATION"

TF_SERVICE_PORT

public static final String TF_SERVICE_PORT

Wartość stała: "TF_SERVICE_PORT"

Konstruktory publiczne

TradefedFeatureServer

public TradefedFeatureServer ()

Metody publiczne

getPort

public static int getPort ()

Zwraca port używany przez serwer.

Zwraca
int

registerInvocation

public String registerInvocation (IConfiguration config, 
                ThreadGroup tg, 
                List<ICommandScheduler.IScheduledInvocationListener> listeners)

Rejestrowanie wywołania z unikalnym odwołaniem, które można wysłać jako zapytanie.

Parametry
config IConfiguration

tg ThreadGroup

listeners List

Zwraca
String

wyłączenie,

public void shutdown ()

Zatrzymaj serwer grpc.

Zgłasza
InterruptedException

rozpocznij

public void start ()

Uruchom serwer gRPC, aby nasłuchiwać żądań.

triggerFeature

public void triggerFeature (FeatureRequest request, 
                StreamObserver<FeatureResponse> responseObserver)

Parametry
request FeatureRequest

responseObserver StreamObserver

unregisterInvocation

public void unregisterInvocation (IConfiguration reference)

Wyrejestrowuje wywołanie na podstawie jego konfiguracji.

Parametry
reference IConfiguration