ShardMainResultForwarder

public class ShardMainResultForwarder
extends ResultForwarder implements ILogSaverListener

java.lang.Object
com.android.tradefed.result.ResultForwarder
com.android.tradefed.invoker.ShardMainResultForwarder


ResultForwarder המשלב את התוצאות של קריאות בדיקה מפוצלות. הוא מדווח למאזינים על השלמת הקריאה רק לאחר השלמת כל הפניות המרוסקות.

מחלקה זו אינה בטוחה בשרשור. צפוי שלקוחות יינעלו על מחלקה זו בעת שליחת תוצאות בדיקה, כדי למנוע קריאת טלפונים חוזרים לא תקינים.

סיכום

בנאים ציבוריים

ShardMainResultForwarder ( listeners, int expectedShards) ShardMainResultForwarder ( listeners, int expectedShards)

צור ShardMainResultForwarder .

שיטות ציבוריות

void invocationEnded (long elapsedTime)

void invocationEnded (long elapsedTime, IInvocationContext context)

התקשרות חוזרת מפורטת יותר כדי להבדיל איזה רסיס הסתיים.

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void testLogForward (String dataName, LogDataType dataType, InputStreamSource dataStream)

העבר רק את testLog במקום לשמור את היומן תחילה.

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)

בנאים ציבוריים

ShardMainResultForwarder

public ShardMainResultForwarder ( listeners, 
                int expectedShards)

צור ShardMainResultForwarder .

פרמטרים
listeners : הרשימה של ITestInvocationListener להעברת תוצאות כאשר כל הרסיסים הושלמו

expectedShards int : מספר הרסיסים

שיטות ציבוריות

הקריאה הסתיימה

public void invocationEnded (long elapsedTime)

פרמטרים
elapsedTime long

הקריאה הסתיימה

public void invocationEnded (long elapsedTime, 
                IInvocationContext context)

התקשרות חוזרת מפורטת יותר כדי להבדיל איזה רסיס הסתיים.

פרמטרים
elapsedTime long

context IInvocationContext

הפניה נכשלה

public void invocationFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

הפניה נכשלה

public void invocationFailed (Throwable cause)

פרמטרים
cause Throwable

התראה התחילה

public void invocationStarted (IInvocationContext context)

פרמטרים
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

פרמטרים
dataName String

logFile LogFile

testLogForward

public void testLogForward (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

העבר רק את testLog במקום לשמור את היומן תחילה.

פרמטרים
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