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()
הפונקציה מחזירה את הערך true אם הדיווח על קריאה נכשלה בוצע, או את הערך false אם לא בוצע דיווח. |
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 ()
הפונקציה מחזירה את הערך true אם הדיווח על קריאה נכשלה בוצע, או את הערך false אם לא בוצע דיווח.
החזרות | |
---|---|
boolean |
joinReceiver
public boolean joinReceiver (long millis)
פרמטרים | |
---|---|
millis |
long |
החזרות | |
---|---|
boolean |