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 uruchomienia funkcji.
Streszczenie
Pola | |
---|---|
public static final String | SERVER_REFERENCE |
public static final String | TEST_INFORMATION_OBJECT
|
Konstruktorzy publiczni | |
---|---|
TradefedFeatureServer () |
Metody publiczne | |
---|---|
static int | getPort () Zwraca port używany przez serwer. |
String | registerInvocation ( IConfiguration config, listeners) registerInvocation ( IConfiguration config, listeners) Zarejestruj wywołanie z unikalnym odniesieniem, które można przeszukiwać |
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 jego konfiguracji. |
Pola
REFERENCJA SERWERA
public static final String SERVER_REFERENCE
TEST_INFORMATION_OBJECT
public static final String TEST_INFORMATION_OBJECT
Konstruktorzy publiczni
TradefedFeatureServer
public TradefedFeatureServer ()
Metody publiczne
getPort
public static int getPort ()
Zwraca port używany przez serwer.
Zwroty | |
---|---|
int |
zarejestruj wywołanie
public String registerInvocation (IConfiguration config,listeners)
Zarejestruj wywołanie z unikalnym odniesieniem, które można przeszukiwać
Parametry | |
---|---|
config | IConfiguration |
listeners |
Zwroty | |
---|---|
String |
zamknąć
public void shutdown ()
Zatrzymaj serwer grpc.
początek
public void start ()
Uruchom serwer grpc, aby nasłuchiwać żądań.
Funkcja wyzwalacza
public void triggerFeature (FeatureRequest request, StreamObserver<FeatureResponse> responseObserver)
Parametry | |
---|---|
request | FeatureRequest |
responseObserver | StreamObserver |
wyrejestruj wywołanie
public void unregisterInvocation (IConfiguration reference)
Wyrejestruj wywołanie według jego konfiguracji.
Parametry | |
---|---|
reference | IConfiguration |