TradefedÖzellikSunucusu
public class TradefedFeatureServer
extends TradefedInformationGrpc.TradefedInformationImplBase
java.lang.Nesne | ||
↳ | com.proto.tradefed.feature.TradefedInformationGrpc.TradefedInformationImplBase | |
↳ | com.android.tradefed.service.TradefedFeatureServer |
Tetikleyici özellikler için isteklere yanıt veren bir sunucu.
Özet
Alanlar | |
---|---|
public static final String | SERVER_REFERENCE |
public static final String | TEST_INFORMATION_OBJECT
|
Kamu inşaatçıları | |
---|---|
TradefedFeatureServer () |
Genel yöntemler | |
---|---|
static int | getPort () Sunucu tarafından kullanılan bağlantı noktasını döndürür. |
String | registerInvocation ( IConfiguration config, listeners) registerInvocation ( IConfiguration config, listeners) Sorgulanabilecek benzersiz bir referansla bir çağrı kaydedin |
void | shutdown () grpc sunucusunu durdurun. |
void | start () İstekleri dinlemek için grpc sunucusunu başlatın. |
void | triggerFeature (FeatureRequest request, StreamObserver<FeatureResponse> responseObserver) |
void | unregisterInvocation ( IConfiguration reference) Bir çağrının kaydını yapılandırmasına göre iptal edin. |
Alanlar
SERVER_REFERENCE
public static final String SERVER_REFERENCE
TEST_BİLGİ_OBJESİ
public static final String TEST_INFORMATION_OBJECT
Kamu inşaatçıları
TradefedÖzellikSunucusu
public TradefedFeatureServer ()
Genel yöntemler
getPort
public static int getPort ()
Sunucu tarafından kullanılan bağlantı noktasını döndürür.
İadeler | |
---|---|
int |
registerInvokasyon
public String registerInvocation (IConfiguration config,listeners)
Sorgulanabilecek benzersiz bir referansla bir çağrı kaydedin
parametreler | |
---|---|
config | IConfiguration |
listeners |
İadeler | |
---|---|
String |
kapat
public void shutdown ()
grpc sunucusunu durdurun.
Başlat
public void start ()
İstekleri dinlemek için grpc sunucusunu başlatın.
tetikleyiciÖzellik
public void triggerFeature (FeatureRequest request, StreamObserver<FeatureResponse> responseObserver)
parametreler | |
---|---|
request | FeatureRequest |
responseObserver | StreamObserver |
kayıt sil
public void unregisterInvocation (IConfiguration reference)
Bir çağrının kaydını yapılandırmasına göre iptal edin.
parametreler | |
---|---|
reference | IConfiguration |