StreamProtoReceiver
public
class
StreamProtoReceiver
extends Object
java.lang.Object | |
↳ | com.android.tradefed.result.proto.StreamProtoReceiver |
수신된 proto TestRecord를 Tradefed 이벤트로 변환하는 수신기입니다.
요약
공개 생성자 | |
---|---|
StreamProtoReceiver(ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation)
Ctor. |
|
StreamProtoReceiver(ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing)
Ctor. |
|
StreamProtoReceiver(ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, String logNamePrefix)
Ctor. |
|
StreamProtoReceiver(ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix)
Ctor. |
공개 메서드 | |
---|---|
void
|
close()
|
void
|
completeModuleEvents()
일관된 보고를 위해 필요한 경우 모듈의 이벤트를 작성합니다. |
Throwable
|
getError()
수신기 스레드에서 포착된 오류를 반환합니다. |
int
|
getSocketServerPort()
열려 있던 소켓 수신기를 반환합니다. |
boolean
|
hasInvocationFailed()
호출 실패가 보고되었는지 여부를 반환합니다. |
boolean
|
joinReceiver(long millis)
|
공개 생성자
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation)
Ctor.
매개변수 | |
---|---|
listener |
ITestInvocationListener : 결과를 보고할 ITestInvocationListener 입니다. |
mainContext |
IInvocationContext |
reportInvocation |
boolean : 호출 수준 이벤트를 보고할지 여부입니다. |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing)
Ctor.
매개변수 | |
---|---|
listener |
ITestInvocationListener : 결과를 보고할 ITestInvocationListener 입니다. |
mainContext |
IInvocationContext |
reportInvocation |
boolean : 호출 수준 이벤트를 보고할지 여부입니다. |
quietParsing |
boolean : 파서가 디버그 정보를 기록하도록 허용할지 여부입니다. |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, String logNamePrefix)
Ctor.
매개변수 | |
---|---|
listener |
ITestInvocationListener : 결과를 보고할 ITestInvocationListener 입니다. |
mainContext |
IInvocationContext |
reportInvocation |
boolean : 호출 수준 이벤트를 보고할지 여부입니다. |
quietParsing |
boolean : 파서가 디버그 정보를 기록하도록 허용할지 여부입니다. |
logNamePrefix |
String : 파서를 통해 로깅된 파일의 접두사입니다. |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix)
Ctor.
매개변수 | |
---|---|
listener |
ITestInvocationListener : 결과를 보고할 ITestInvocationListener 입니다. |
mainContext |
IInvocationContext |
reportInvocation |
boolean : 호출 수준 이벤트를 보고할지 여부입니다. |
quietParsing |
boolean : 파서가 디버그 정보를 기록하도록 허용할지 여부입니다. |
reportLogs |
boolean : 로그를 보고할지 여부 |
logNamePrefix |
String : 파서를 통해 로깅된 파일의 접두사입니다. |
공개 메서드
닫기
public void close ()
completeModuleEvents
public void completeModuleEvents ()
일관된 보고를 위해 필요한 경우 모듈의 이벤트를 작성합니다.
getError
public Throwable getError ()
수신기 스레드에서 포착된 오류를 반환합니다. 없으면 null이 반환됩니다.
반환 값 | |
---|---|
Throwable |
getSocketServerPort
public int getSocketServerPort ()
열려 있던 소켓 수신기를 반환합니다. 없으면 -1입니다.
반환 값 | |
---|---|
int |
hasInvocationFailed
public boolean hasInvocationFailed ()
호출 실패가 보고되었는지 여부를 반환합니다.
반환 값 | |
---|---|
boolean |
joinReceiver
public boolean joinReceiver (long millis)
매개변수 | |
---|---|
millis |
long |
반환 값 | |
---|---|
boolean |