StreamProtoReceiver

public class StreamProtoReceiver
extends Object

java.lang.Objek
com.android.tradefed.result.proto.StreamProtoReceiver


Penerima yang menerjemahkan proto TestRecord diterima ke dalam peristiwa Tradefed.

Ringkasan

Konstruktor publik

StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation)

Rektor.

StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing)

Rektor.

StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, String logNamePrefix)

Rektor.

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)

Rektor.

Metode publik

void close ()
void completeModuleEvents ()

Jika diperlukan untuk memastikan pelaporan yang konsisten, selesaikan peristiwa modul.

Throwable getError ()

Mengembalikan error caugh di thread penerima.

int getSocketServerPort ()

Mengembalikan penerima soket yang terbuka.

boolean hasInvocationFailed ()

Mengembalikan apakah pemanggilan gagal telah dilaporkan atau tidak.

boolean joinReceiver (long millis)

Metode yang dilindungi

long getJoinTimeout (long millis)

Konstruktor publik

StreamProtoReceiver

public StreamProtoReceiver (ITestInvocationListener listener, 
                IInvocationContext mainContext, 
                boolean reportInvocation)

Rektor.

Parameter
listener ITestInvocationListener : ITestInvocationListener tempat melaporkan hasil.

mainContext IInvocationContext

reportInvocation boolean : Apakah melaporkan peristiwa tingkat pemanggilan atau tidak.

Melempar
IOException

StreamProtoReceiver

public StreamProtoReceiver (ITestInvocationListener listener, 
                IInvocationContext mainContext, 
                boolean reportInvocation, 
                boolean quietParsing)

Rektor.

Parameter
listener ITestInvocationListener : ITestInvocationListener tempat melaporkan hasil.

mainContext IInvocationContext

reportInvocation boolean : Apakah melaporkan peristiwa tingkat pemanggilan atau tidak.

quietParsing boolean : Apakah membiarkan informasi debug log parser atau tidak.

Melempar
IOException

StreamProtoReceiver

public StreamProtoReceiver (ITestInvocationListener listener, 
                IInvocationContext mainContext, 
                boolean reportInvocation, 
                boolean quietParsing, 
                String logNamePrefix)

Rektor.

Parameter
listener ITestInvocationListener : ITestInvocationListener tempat melaporkan hasil.

mainContext IInvocationContext

reportInvocation boolean : Apakah melaporkan peristiwa tingkat pemanggilan atau tidak.

quietParsing boolean : Apakah membiarkan informasi debug log parser atau tidak.

logNamePrefix String : Awalan untuk file yang dicatat melalui parser.

Melempar
IOException

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)

Rektor.

Parameter
listener ITestInvocationListener : ITestInvocationListener tempat melaporkan hasil.

mainContext IInvocationContext

reportInvocation boolean : Apakah melaporkan peristiwa tingkat pemanggilan atau tidak.

quietParsing boolean : Apakah membiarkan informasi debug log parser atau tidak.

reportLogs boolean : Apakah akan melaporkan log atau tidak

logNamePrefix String : Awalan untuk file yang dicatat melalui parser.

mergeInvocationMetrics boolean

Melempar
IOException

Metode publik

menutup

public void close ()

completeModuleEvents

public void completeModuleEvents ()

Jika diperlukan untuk memastikan pelaporan yang konsisten, selesaikan peristiwa modul.

getError

public Throwable getError ()

Mengembalikan error caugh di thread penerima. Jika tidak ada, itu akan mengembalikan nol.

Pengembalian
Throwable

getSocketServerPort

public int getSocketServerPort ()

Mengembalikan penerima soket yang terbuka. -1 jika tidak ada.

Pengembalian
int

hasInvocationFailed

public boolean hasInvocationFailed ()

Mengembalikan apakah pemanggilan gagal telah dilaporkan atau tidak.

Pengembalian
boolean

joinReceiver

public boolean joinReceiver (long millis)

Parameter
millis long

Pengembalian
boolean

Metode yang dilindungi

getJoinTimeout

protected long getJoinTimeout (long millis)

Parameter
millis long

Pengembalian
long