Tradefed 功能服務器
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) registerInvocation ( IConfiguration config, ThreadGroup tg, listeners) 使用可查詢的唯一引用註冊調用 |
void | shutdown () 停止 grpc 服務器。 |
void | start () 啟動grpc服務器來監聽請求。 |
void | triggerFeature (FeatureRequest request, StreamObserver<FeatureResponse> responseObserver) |
void | unregisterInvocation ( IConfiguration reference) 通過其配置取消註冊調用。 |
領域
服務器參考
public static final String SERVER_REFERENCE
測試信息對象
public static final String TEST_INFORMATION_OBJECT
TF_SERVICE_PORT
public static final String TF_SERVICE_PORT
公共構造函數
Tradefed 功能服務器
public TradefedFeatureServer ()
公共方法
獲取端口
public static int getPort ()
返回服務器使用的端口。
退貨 | |
---|---|
int |
註冊調用
public String registerInvocation (IConfiguration config, ThreadGroup tg,listeners)
使用可查詢的唯一引用註冊調用
參數 | |
---|---|
config | IConfiguration |
tg | ThreadGroup |
listeners |
退貨 | |
---|---|
String |
關閉
public void shutdown ()
停止 grpc 服務器。
開始
public void start ()
啟動grpc服務器來監聽請求。
觸發功能
public void triggerFeature (FeatureRequest request, StreamObserver<FeatureResponse> responseObserver)
參數 | |
---|---|
request | FeatureRequest |
responseObserver | StreamObserver |
取消註冊調用
public void unregisterInvocation (IConfiguration reference)
通過其配置取消註冊調用。
參數 | |
---|---|
reference | IConfiguration |