TestsPoolPoller

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

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


Testy otoki, które umożliwiają wykonanie wszystkich testów z puli testów. Testy mogą być udostępniane przez innego TestsPoolPoller, więc wymagana jest synchronizacja.

DO ZROBIENIA: dodać obsługę modułu tokena i testów.

Podsumowanie

Konstruktory publiczne

TestsPoolPoller(ITestsPool testsPool, CountDownLatch tracker)

Konstruktor, w którym podana jest pula IRemoteTest.

Metody publiczne

void run(TestInformation info, ITestInvocationListener listener)

Przeprowadza testy i przekazuje wyniki odbiorcy.

void setConfiguration(IConfiguration configuration)

Wstawia używaną wartość IConfiguration.

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

Ustawia listę IMetricCollector zdefiniowanych dla testu.

void setSystemStatusChecker(List<ISystemStatusChecker> systemCheckers)

Ustawia ISystemStatusCheckers z konfiguracji testu.

Konstruktory publiczne

TestsPoolPoller

public TestsPoolPoller (ITestsPool testsPool, 
                CountDownLatch tracker)

Konstruktor, w którym podana jest pula IRemoteTest.

Parametry
testsPool ITestsPool: pula wszystkich testów ITestsPool.

tracker CountDownLatch: CountDownLatch udostępniony w celu uzyskania liczby działających procesów sprawdzających.

Metody publiczne

home run

public void run (TestInformation info, 
                ITestInvocationListener listener)

Przeprowadza testy i przekazuje wyniki odbiorcy.

Parametry
info TestInformation: obiekt TestInformation zawierający przydatne informacje do przeprowadzania testów.

listener ITestInvocationListener: ITestInvocationListener wyników testu

Zgłasza
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Wstawia używaną wartość IConfiguration.

Parametry
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

Parametry
registry ILogRegistry

setMetricCollectors

public void setMetricCollectors (List<IMetricCollector> collectors)

Ustawia listę IMetricCollector zdefiniowanych dla testu.

Parametry
collectors List

setSystemStatusChecker

public void setSystemStatusChecker (List<ISystemStatusChecker> systemCheckers)

Ustawia ISystemStatusCheckers z konfiguracji testu.

Parametry
systemCheckers List