TestsPoolPoller

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

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


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

TODO: Add handling for token module/tests.

סיכום

קונסטרוקטורים גלויים לכולם

TestsPoolPoller(ITestsPool testsPool, CountDownLatch tracker)

יצירת אובייקט (constructor) שבו מצוין המאגר של IRemoteTest.

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

void run(TestInformation info, ITestInvocationListener listener)

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

void setConfiguration(IConfiguration configuration)

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

void setLogRegistry(ILogRegistry registry)
void setMetricCollectors( collectors)

הגדרת רשימת ה-IMetricCollector שמוגדרים להרצת הבדיקה.

void setSystemStatusChecker( systemCheckers)

מגדיר את הערכים של ISystemStatusChecker מההגדרה של הבדיקה.

קונסטרוקטורים גלויים לכולם

TestsPoolPoller

public TestsPoolPoller (ITestsPool testsPool, 
                CountDownLatch tracker)

יצירת אובייקט (constructor) שבו מצוין המאגר של IRemoteTest.

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

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

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

ראן

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 מההגדרה של הבדיקה.

פרמטרים
systemCheckers