TestsPoolPoller

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

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


‫Tests wrapper שמאפשר להריץ את כל הבדיקות במאגר בדיקות. אפשר לשתף בדיקות על ידי TestsPoolPoller אחר, ולכן נדרש סנכרון.

‫TODO: צריך להוסיף טיפול במודול טוקנים או בבדיקות.

סיכום

‫constructors ציבוריים

TestsPoolPoller(ITestsPool testsPool, CountDownLatch tracker)

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

‫methods ציבוריים

void run(TestInformation info, ITestInvocationListener listener)

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

void setConfiguration(IConfiguration configuration)

הוספת ה-IConfiguration שנמצא בשימוש.

void setLogRegistry(ILogRegistry registry)
void setMetricCollectors(List<IMetricCollector> collectors)

הגדרת רשימת IMetricCollectors שהוגדרו להרצת הבדיקה.

void setSystemStatusChecker(List<ISystemStatusChecker> systemCheckers)

מגדירה את ה-ISystemStatusCheckers מההגדרה לבדיקה.

‫constructors ציבוריים

TestsPoolPoller

public TestsPoolPoller (ITestsPool testsPool, 
                CountDownLatch tracker)

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

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

tracker CountDownLatch: CountDownLatch ששותף כדי לקבל את מספר הסוקרים הפעילים.

‫methods ציבוריים

ראן

public void run (TestInformation info, 
                ITestInvocationListener listener)

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

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

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

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

הוספת ה-IConfiguration שנמצא בשימוש.

פרמטרים
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

פרמטרים
registry ILogRegistry

setMetricCollectors

public void setMetricCollectors (List<IMetricCollector> collectors)

הגדרת רשימת IMetricCollectors שהוגדרו להרצת הבדיקה.

פרמטרים
collectors List

setSystemStatusChecker

public void setSystemStatusChecker (List<ISystemStatusChecker> systemCheckers)

מגדירה את ה-ISystemStatusCheckers מההגדרה לבדיקה.

פרמטרים
systemCheckers List