TradefedFeatureServer
public
class
TradefedFeatureServer
extends TradefedInformationGrpc.TradefedInformationImplBase
java.lang.Object | ||
↳ | com.proto.tradefed.feature.TradefedInformationGrpc.TradefedInformationImplBase | |
↳ | com.android.tradefed.service.TradefedFeatureServer |
A server that responds to requests for triggering features.
Summary
Fields | |
---|---|
public
static
final
String |
SERVER_REFERENCE
|
public
static
final
String |
TEST_INFORMATION_OBJECT
|
public
static
final
String |
TF_SERVICE_PORT
|
Public constructors | |
---|---|
TradefedFeatureServer()
|
Public methods | |
---|---|
static
int
|
getPort()
Returns the port used by the server. |
String
|
registerInvocation(IConfiguration config, ThreadGroup tg,
Register an invocation with a unique reference that can be queried |
void
|
shutdown()
Stop the grpc server. |
void
|
start()
Start the grpc server to listen to requests. |
void
|
triggerFeature(FeatureRequest request, StreamObserver<FeatureResponse> responseObserver)
|
void
|
unregisterInvocation(IConfiguration reference)
Unregister an invocation by its configuration. |
Fields
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
Public constructors
TradefedFeatureServer
public TradefedFeatureServer ()
Public methods
getPort
public static int getPort ()
Returns the port used by the server.
Returns | |
---|---|
int |
registerInvocation
public String registerInvocation (IConfiguration config, ThreadGroup tg,listeners)
Register an invocation with a unique reference that can be queried
Parameters | |
---|---|
config |
IConfiguration |
tg |
ThreadGroup |
listeners |
|
Returns | |
---|---|
String |
shutdown
public void shutdown ()
Stop the grpc server.
start
public void start ()
Start the grpc server to listen to requests.
triggerFeature
public void triggerFeature (FeatureRequest request, StreamObserver<FeatureResponse> responseObserver)
Parameters | |
---|---|
request |
FeatureRequest |
responseObserver |
StreamObserver |
unregisterInvocation
public void unregisterInvocation (IConfiguration reference)
Unregister an invocation by its configuration.
Parameters | |
---|---|
reference |
IConfiguration |