Tradefed 功能服务器

public class TradefedFeatureServer
extends TradefedInformationGrpc.TradefedInformationImplBase

对象
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)

使用可查询的唯一引用注册调用

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

公共构造函数

Tradefed 功能服务器

public TradefedFeatureServer ()

公共方法

获取端口

public static int getPort ()

返回服务器使用的端口。

退货
int

注册调用

public String registerInvocation (IConfiguration config)

使用可查询的唯一引用注册调用

参数
config IConfiguration

退货
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