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
|
公共构造函数 | |
---|---|
TradefedFeatureServer () |
公共方法 | |
---|---|
static int | getPort () 返回服务器使用的端口。 |
String | registerInvocation ( IConfiguration config, listeners) registerInvocation ( IConfiguration config, listeners) 使用可查询的唯一引用注册调用 |
void | shutdown () 停止 grpc 服务器。 |
void | start () 启动grpc服务器监听请求。 |
void | triggerFeature (FeatureRequest request, StreamObserver<FeatureResponse> responseObserver) |
void | unregisterInvocation ( IConfiguration reference) 通过其配置注销调用。 |
领域
服务器参考
public static final String SERVER_REFERENCE
TEST_INFORMATION_OBJECT
public static final String TEST_INFORMATION_OBJECT
公共构造函数
Tradefed 功能服务器
public TradefedFeatureServer ()
公共方法
获取端口
public static int getPort ()
返回服务器使用的端口。
退货 | |
---|---|
int |
注册调用
public String registerInvocation (IConfiguration config,listeners)
使用可查询的唯一引用注册调用
参数 | |
---|---|
config | IConfiguration |
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 |