TradefedFeatureServer

public class TradefedFeatureServer
extends TradefedInformationGrpc.TradefedInformationImplBase

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


機能のトリガーのリクエストに応答するサーバー。

概要

定数

String SERVER_REFERENCE

String TEST_INFORMATION_OBJECT

String TF_SERVICE_PORT

パブリック コンストラクタ

TradefedFeatureServer()

パブリック メソッド

static int getPort()

サーバーが使用するポートを返します。

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

クエリ可能な一意の参照を使用して呼び出しを登録します

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

定数値: "SERVER_REFERENCE"

TEST_INFORMATION_OBJECT

public static final String TEST_INFORMATION_OBJECT

定数値: "TEST_INFORMATION"

TF_SERVICE_PORT

public static final String TF_SERVICE_PORT

定数値: "TF_SERVICE_PORT"

パブリック コンストラクタ

TradefedFeatureServer

public TradefedFeatureServer ()

パブリック メソッド

getPort

public static int getPort ()

サーバーが使用するポートを返します。

戻り値
int

registerInvocation

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

クエリ可能な一意の参照を使用して呼び出しを登録します

パラメータ
config IConfiguration

tg ThreadGroup

listeners List

戻り値
String

shutdown

public void shutdown ()

grpc サーバーを停止します。

例外
InterruptedException

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