TestsPoolPoller

public final class TestsPoolPoller
extends Object implements IRemoteTest , IConfigurationReceiver , ISystemStatusCheckerReceiver , IMetricCollectorReceiver

java.lang.Object
com.android.tradefed.invoker.shard.TestsPoolPoller


מעטפת בדיקות המאפשרת לבצע את כל הבדיקות של מאגר בדיקות. ניתן לשתף בדיקות על ידי TestsPoolPoller אחר ולכן נדרש סנכרון.

TODO: הוסף טיפול עבור מודול/בדיקות אסימון.

סיכום

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

TestsPoolPoller ( ITestsPool testsPool, CountDownLatch tracker)

סקטור שבו מסופק המאגר של IRemoteTest .

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

void run ( TestInformation info, ITestInvocationListener listener)

מפעיל את הבדיקות ומדווח על התוצאה למאזין.

void setConfiguration ( IConfiguration configuration)

מזריק את IConfiguration בשימוש.

void setLogRegistry ( ILogRegistry registry)
void setMetricCollectors ( collectors) setMetricCollectors ( collectors)

מגדיר את רשימת ה- IMetricCollector שהוגדרו להפעלת המבחן.

void setSystemStatusChecker ( systemCheckers) setSystemStatusChecker ( systemCheckers)

מגדיר את ISystemStatusChecker s מהתצורה של הבדיקה.

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

TestsPoolPoller

public TestsPoolPoller (ITestsPool testsPool, 
                CountDownLatch tracker)

סקטור שבו מסופק המאגר של IRemoteTest .

פרמטרים
testsPool ITestsPool : מאגר כל הבדיקות של ITestsPool .

tracker CountDownLatch : ERROR(/CountDownLatch) ששותפה כדי לקבל את מספר המסקר הפועל.

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

לָרוּץ

public void run (TestInformation info, 
                ITestInvocationListener listener)

מפעיל את הבדיקות ומדווח על התוצאה למאזין.

פרמטרים
info TestInformation : אובייקט TestInformation המכיל מידע שימושי להפעלת בדיקות.

listener ITestInvocationListener : ה- ITestInvocationListener של תוצאות הבדיקה

זורק
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

מזריק את IConfiguration בשימוש.

פרמטרים
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

פרמטרים
registry ILogRegistry

setMetricCollectors

public void setMetricCollectors ( collectors)

מגדיר את רשימת ה- IMetricCollector שהוגדרו להפעלת המבחן.

פרמטרים
collectors

setSystemStatusChecker

public void setSystemStatusChecker ( systemCheckers)

מגדיר את ISystemStatusChecker s מהתצורה של הבדיקה.

פרמטרים
systemCheckers