TestsPoolPoller

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

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


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

DO ZROBIENIA: dodać obsługę modułu tokenów/testów.

Podsumowanie

Konstruktory publiczne

TestsPoolPoller( tests, CountDownLatch tracker)

Konstruktor, w którym podana jest pula IRemoteTest.

TestsPoolPoller( tests, tokenTests, CountDownLatch tracker)

Metody publiczne

void run(TestInformation info, ITestInvocationListener listener)

void setConfiguration(IConfiguration configuration)

Wstrzykuje IConfiguration w użyciu.

void setLogRegistry(ILogRegistry registry)
void setMetricCollectors( collectors)

Ustawia listę IMetricCollector zdefiniowanych na potrzeby testu.

void setSystemStatusChecker( systemCheckers)

Ustawia ISystemStatusChecker z konfiguracji testu.

Konstruktory publiczne

TestsPoolPoller

public TestsPoolPoller ( tests, 
                CountDownLatch tracker)

Konstruktor, w którym podana jest pula IRemoteTest.

Parametry
tests : IRemoteTest baza wszystkich testów.

tracker CountDownLatch: ERROR(/CountDownLatch) udostępniony, aby uzyskać liczbę działających pollerów.

TestsPoolPoller

public TestsPoolPoller ( tests, 
                 tokenTests, 
                CountDownLatch tracker)

Parametry
tests

tokenTests

tracker CountDownLatch

Metody publiczne

home run

public void run (TestInformation info, 
                ITestInvocationListener listener)

Parametry
info TestInformation

listener ITestInvocationListener

Rzuty
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Wstrzykuje IConfiguration w użyciu.

Parametry
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

Parametry
registry ILogRegistry

setMetricCollectors

public void setMetricCollectors ( collectors)

Ustawia listę IMetricCollector zdefiniowanych na potrzeby testu.

Parametry
collectors

setSystemStatusChecker

public void setSystemStatusChecker ( systemCheckers)

Ustawia ISystemStatusChecker z konfiguracji testu.

Parametry
systemCheckers