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, 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

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

註冊叫用作業

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