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 uruchamiania.

Podsumowanie

Fieldsem

public static final String SERVER_REFERENCE

public static final String TEST_INFORMATION_OBJECT

public static final String TF_SERVICE_PORT

Konstruktory publiczne

TradefedFeatureServer()

Metody publiczne

static int getPort()

Zwraca port używany przez serwer.

String registerInvocation(IConfiguration config, ThreadGroup tg, listeners)

Rejestrowanie wywołania za pomocą unikalnego odwołania, które można zapytać

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)

Wyrejestruj wywołanie według konfiguracji.

Fieldsem

SERVER_REFERENCE

public static final String SERVER_REFERENCE

TEST_INFORMATION_OBJECT

public static final String TEST_INFORMATION_OBJECT

TF_SERVICE_PORT

public static final String TF_SERVICE_PORT

Konstruktory publiczne

TradefedFeatureServer

public TradefedFeatureServer ()

Metody publiczne

getPort

public static int getPort ()

Zwraca port używany przez serwer.

Zwroty
int

registerInvocation

public String registerInvocation (IConfiguration config, 
                ThreadGroup tg, 
                 listeners)

Rejestrowanie wywołania za pomocą unikalnego odwołania, które można zapytać

Parametry
config IConfiguration

tg ThreadGroup

listeners

Zwroty
String

wyłączenie

public void shutdown ()

Zatrzymaj serwer grpc.

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)

Wyrejestruj wywołanie według konfiguracji.

Parametry
reference IConfiguration