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,
使用可查詢的專屬參照註冊叫用項目 |
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,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 |