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

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