TradefedFeatureServer
public class TradefedFeatureServer
extends TradefedInformationGrpc.TradefedInformationImplBase
java.lang.객체 | ||
↳ | 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
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 서버를 중지합니다.
시작
public void start ()
grpc 서버를 시작하여 요청을 수신합니다.
트리거 기능
public void triggerFeature (FeatureRequest request, StreamObserver<FeatureResponse> responseObserver)
매개변수 | |
---|---|
request | FeatureRequest |
responseObserver | StreamObserver |
unregisterInvocation
public void unregisterInvocation (IConfiguration reference)
해당 구성으로 호출을 등록 취소합니다.
매개변수 | |
---|---|
reference | IConfiguration |