StreamProtoReceiver
public
class
StreamProtoReceiver
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.result.proto.StreamProtoReceiver
|
Penerima yang menerjemahkan proto TestRecord yang diterima menjadi peristiwa Tradefed.
Ringkasan
Kolom |
protected
AtomicBoolean |
mStopParsing
Berhenti mengurai peristiwa saat ini ditetapkan.
|
Konstruktor publik |
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, boolean reportLogs, String logNamePrefix)
|
StreamProtoReceiver(ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix, boolean mergeInvocationMetrics)
Ctor.
|
StreamProtoReceiver(ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, String logNamePrefix)
Ctor.
|
Metode publik |
void
|
close()
|
void
|
completeModuleEvents()
Jika diperlukan untuk memastikan pelaporan yang konsisten, selesaikan peristiwa modul.
|
Throwable
|
getError()
Menampilkan error yang tertangkap di thread penerima.
|
int
|
getSocketServerPort()
Menampilkan penerima soket yang terbuka.
|
boolean
|
hasInvocationFailed()
Menampilkan apakah pemanggilan yang gagal telah dilaporkan atau belum.
|
boolean
|
joinReceiver(long millis)
|
Kolom
mStopParsing
protected AtomicBoolean mStopParsing
Berhenti mengurai peristiwa saat ini ditetapkan. Hal ini memungkinkan untuk menghindari thread mengurai peristiwa saat
kita tidak mengharapkannya lagi.
Konstruktor publik
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation)
Ctor.
Parameter |
listener |
ITestInvocationListener : ITestInvocationListener tempat melaporkan hasil. |
mainContext |
IInvocationContext |
reportInvocation |
boolean : Apakah akan melaporkan peristiwa tingkat pemanggilan atau tidak. |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing)
Ctor.
Parameter |
listener |
ITestInvocationListener : ITestInvocationListener tempat melaporkan hasil. |
mainContext |
IInvocationContext |
reportInvocation |
boolean : Apakah akan melaporkan peristiwa tingkat pemanggilan atau tidak. |
quietParsing |
boolean : Apakah akan mengizinkan parser mencatat informasi debug atau tidak. |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing,
boolean reportLogs,
String logNamePrefix)
Parameter |
listener |
ITestInvocationListener |
mainContext |
IInvocationContext |
reportInvocation |
boolean |
quietParsing |
boolean |
reportLogs |
boolean |
logNamePrefix |
String |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing,
boolean reportLogs,
String logNamePrefix,
boolean mergeInvocationMetrics)
Ctor.
Parameter |
listener |
ITestInvocationListener : ITestInvocationListener tempat melaporkan hasil. |
mainContext |
IInvocationContext |
reportInvocation |
boolean : Apakah akan melaporkan peristiwa tingkat pemanggilan atau tidak. |
quietParsing |
boolean : Apakah akan mengizinkan parser mencatat informasi debug atau tidak. |
reportLogs |
boolean : Apakah akan melaporkan log atau tidak |
logNamePrefix |
String : Awalan untuk file yang dicatat ke dalam log melalui parser. |
mergeInvocationMetrics |
boolean |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing,
String logNamePrefix)
Ctor.
Parameter |
listener |
ITestInvocationListener : ITestInvocationListener tempat melaporkan hasil. |
mainContext |
IInvocationContext |
reportInvocation |
boolean : Apakah akan melaporkan peristiwa tingkat pemanggilan atau tidak. |
quietParsing |
boolean : Apakah akan mengizinkan parser mencatat informasi debug atau tidak. |
logNamePrefix |
String : Awalan untuk file yang dicatat ke dalam log melalui parser. |
Metode publik
tutup
public void close ()
completeModuleEvents
public void completeModuleEvents ()
Jika diperlukan untuk memastikan pelaporan yang konsisten, selesaikan peristiwa modul.
getError
public Throwable getError ()
Menampilkan error yang tertangkap di thread penerima. Jika tidak ada, nilai akan menampilkan null.
getSocketServerPort
public int getSocketServerPort ()
Menampilkan penerima soket yang terbuka. -1 jika tidak ada.
hasInvocationFailed
public boolean hasInvocationFailed ()
Menampilkan apakah pemanggilan yang gagal telah dilaporkan atau belum.
joinReceiver
public boolean joinReceiver (long millis)
Metode yang dilindungi
getJoinTimeout
protected long getJoinTimeout (long millis)