TradefedFeatureServer
public
class
TradefedFeatureServer
extends TradefedInformationGrpc.TradefedInformationImplBase
| java.lang.Object | ||
| ↳ | com.proto.tradefed.feature.TradefedInformationGrpc.TradefedInformationImplBase | |
| ↳ | com.android.tradefed.service.TradefedFeatureServer | |
トリガー機能のリクエストに応答するサーバー。
概要
フィールド | |
|---|---|
public
static
final
String |
SERVER_REFERENCE
|
public
static
final
String |
TEST_INFORMATION_OBJECT
|
public
static
final
String |
TF_SERVICE_PORT
|
パブリック コンストラクタ | |
|---|---|
TradefedFeatureServer()
|
|
パブリック メソッド | |
|---|---|
static
int
|
getPort()
サーバーが使用しているポートを返します。 |
String
|
registerInvocation(IConfiguration config, ThreadGroup tg,
クエリ可能な一意の参照を使用して呼び出しを登録します。 |
void
|
shutdown()
grpc サーバーを停止します。 |
void
|
start()
grpc サーバーを起動してリクエストをリッスンします。 |
void
|
triggerFeature(FeatureRequest request, StreamObserver<FeatureResponse> responseObserver)
|
void
|
unregisterInvocation(IConfiguration reference)
構成で呼び出しの登録を解除します。 |
フィールド
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
パブリック コンストラクタ
TradefedFeatureServer
public TradefedFeatureServer ()
パブリック メソッド
getPort
public static int getPort ()
サーバーが使用しているポートを返します。
| 戻り値 | |
|---|---|
int |
|
registerInvocation
public String registerInvocation (IConfiguration config, ThreadGroup tg,listeners)
クエリ可能な一意の参照を使用して呼び出しを登録する
| パラメータ | |
|---|---|
config |
IConfiguration |
tg |
ThreadGroup |
listeners |
|
| 戻り値 | |
|---|---|
String |
|
シャットダウン
public void shutdown ()
grpc サーバーを停止します。
start
public void start ()
grpc サーバーを起動してリクエストをリッスンします。
triggerFeature
public void triggerFeature (FeatureRequest request,
StreamObserver<FeatureResponse> responseObserver)| パラメータ | |
|---|---|
request |
FeatureRequest |
responseObserver |
StreamObserver |
unregisterInvocation
public void unregisterInvocation (IConfiguration reference)
構成で呼び出しの登録を解除します。
| パラメータ | |
|---|---|
reference |
IConfiguration |