TestsPoolPoller

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

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


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

TODO: Add handling for token module/tests.

סיכום

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

TestsPoolPoller( tests, CountDownLatch tracker)

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

TestsPoolPoller( tests, tokenTests, CountDownLatch tracker)

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

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 ( tests, 
                CountDownLatch tracker)

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

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

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

TestsPoolPoller

public TestsPoolPoller ( tests, 
                 tokenTests, 
                CountDownLatch tracker)

פרמטרים
tests

tokenTests

tracker CountDownLatch

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

ראן

public void run (TestInformation info, 
                ITestInvocationListener listener)

פרמטרים
info TestInformation

listener 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