StreamProtoThu
public class StreamProtoReceiver
extends Object
java.lang.Object |
↳ | com.android.tradefed.result.proto.StreamProtoReceiver |
Bộ thu dịch Proto TestRecord nhận được thành các sự kiện Tradefed.
Bản tóm tắt
Nhà thầu xây dựng công cộng |
---|
StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation) Tiến sĩ. |
StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing) Tiến sĩ. |
StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, String logNamePrefix) Tiến sĩ. |
StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix) |
StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix, boolean mergeInvocationMetrics) Tiến sĩ. |
Nhà thầu xây dựng công cộng
StreamProtoThu
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation)
Tiến sĩ.
Thông số |
---|
listener | ITestInvocationListener : ITestInvocationListener nơi báo cáo kết quả. |
mainContext | IInvocationContext |
reportInvocation | boolean : Có báo cáo các sự kiện ở cấp độ lệnh gọi hay không. |
StreamProtoThu
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing)
Tiến sĩ.
Thông số |
---|
listener | ITestInvocationListener : ITestInvocationListener nơi báo cáo kết quả. |
mainContext | IInvocationContext |
reportInvocation | boolean : Có báo cáo các sự kiện ở cấp độ lệnh gọi hay không. |
quietParsing | boolean : Có hay không để trình phân tích cú pháp ghi lại thông tin gỡ lỗi. |
StreamProtoThu
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing,
String logNamePrefix)
Tiến sĩ.
Thông số |
---|
listener | ITestInvocationListener : ITestInvocationListener nơi báo cáo kết quả. |
mainContext | IInvocationContext |
reportInvocation | boolean : Có báo cáo các sự kiện ở cấp độ lệnh gọi hay không. |
quietParsing | boolean : Có hay không để trình phân tích cú pháp ghi lại thông tin gỡ lỗi. |
logNamePrefix | String : Tiền tố cho tệp được ghi thông qua trình phân tích cú pháp. |
StreamProtoThu
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing,
boolean reportLogs,
String logNamePrefix)
Thông số |
---|
listener | ITestInvocationListener |
mainContext | IInvocationContext |
reportInvocation | boolean |
quietParsing | boolean |
reportLogs | boolean |
logNamePrefix | String |
StreamProtoThu
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing,
boolean reportLogs,
String logNamePrefix,
boolean mergeInvocationMetrics)
Tiến sĩ.
Thông số |
---|
listener | ITestInvocationListener : ITestInvocationListener nơi báo cáo kết quả. |
mainContext | IInvocationContext |
reportInvocation | boolean : Có báo cáo các sự kiện ở cấp độ lệnh gọi hay không. |
quietParsing | boolean : Có hay không để trình phân tích cú pháp ghi lại thông tin gỡ lỗi. |
reportLogs | boolean : Có báo cáo nhật ký hay không |
logNamePrefix | String : Tiền tố cho tệp được ghi thông qua trình phân tích cú pháp. |
mergeInvocationMetrics | boolean |
Phương pháp công khai
đóng
public void close ()
hoàn thànhModuleSự kiện
public void completeModuleEvents ()
Nếu cần để đảm bảo báo cáo nhất quán, hãy hoàn thành các sự kiện của mô-đun.
nhận đượcLỗi
public Throwable getError ()
Trả về lỗi trong luồng nhận. Nếu không có nó sẽ trả về null.
getSocketServerPort
public int getSocketServerPort ()
Trả về bộ thu ổ cắm đã mở. -1 nếu không có.
hasInvocation không thành công
public boolean hasInvocationFailed ()
Trả về việc lệnh gọi thất bại có được báo cáo hay không.
tham gia người nhận
public boolean joinReceiver (long millis)
Phương pháp được bảo vệ
getJoinTimeout
protected long getJoinTimeout (long millis)