ShardListener
public
class
ShardListener
extends CollectingTestListener
implements
ISupportGranularResults
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.invoker.ShardListener |
ITestInvocationListener
שאוסף תוצאות מחלק של קריאה (קריאה שמפוצלת לצורך הפעלה בכמה משאבים בו-זמנית) ומעביר אותן למאזין אחר.
סיכום
קונסטרוקטורים גלויים לכולם | |
---|---|
ShardListener(ITestInvocationListener main)
יוצרים |
שיטות ציבוריות | |
---|---|
void
|
invocationEnded(long elapsedTime)
|
void
|
invocationFailed(FailureDescription failure)
|
void
|
invocationFailed(Throwable cause)
|
void
|
invocationStarted(IInvocationContext context)
|
void
|
setSupportGranularResults(boolean enableGranularResults)
|
boolean
|
supportGranularResults()
|
void
|
testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)
|
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
void
|
testModuleEnded()
|
void
|
testModuleStarted(IInvocationContext moduleContext)
|
void
|
testRunEnded(long elapsedTime,
|
void
|
testRunFailed(FailureDescription failure)
|
void
|
testRunFailed(String failureMessage)
|
void
|
testRunStarted(String name, int numTests, int attemptNumber, long startTime)
|
קונסטרוקטורים גלויים לכולם
ShardListener
public ShardListener (ITestInvocationListener main)
יוצרים ShardListener
.
פרמטרים | |
---|---|
main |
ITestInvocationListener : ה-ITestInvocationListener שאליו צריך להעביר את התוצאות. כדי למנוע התנגשויות עם ShardListener אחרים, האובייקט הזה יסתנכרן ב-main כשיתבצע העברה של תוצאות. התוצאות יישלחו רק אחרי שהפלאגין של הקריאה יושלם.
|
שיטות ציבוריות
invocationEnded
public void invocationEnded (long elapsedTime)
פרמטרים | |
---|---|
elapsedTime |
long |
invocationFailed
public void invocationFailed (FailureDescription failure)
פרמטרים | |
---|---|
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
פרמטרים | |
---|---|
cause |
Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
פרמטרים | |
---|---|
context |
IInvocationContext |
setSupportGranularResults
public void setSupportGranularResults (boolean enableGranularResults)
פרמטרים | |
---|---|
enableGranularResults |
boolean |
supportGranularResults
public boolean supportGranularResults ()
החזרות | |
---|---|
boolean |
testLog
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
פרמטרים | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
פרמטרים | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
פרמטרים | |
---|---|
moduleContext |
IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
פרמטרים | |
---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
פרמטרים | |
---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String failureMessage)
פרמטרים | |
---|---|
failureMessage |
String |
testRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber, long startTime)
פרמטרים | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
startTime |
long |