TestPollerPool

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

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


Wrapper di test che consente di eseguire tutti i test di un pool di test. I test possono essere condivisi da un altro TestsPoolPoller quindi è richiesta la sincronizzazione.

TODO: aggiunta la gestione per moduli/test token.

Riepilogo

Costruttori pubblici

TestsPoolPoller ( tests, CountDownLatch tracker) TestsPoolPoller ( tests, CountDownLatch tracker)

Ctor in cui viene fornito il pool di IRemoteTest .

TestsPoolPoller ( tests, tokenTests, CountDownLatch tracker) TestsPoolPoller ( tests, tokenTests, CountDownLatch tracker) TestsPoolPoller ( tests, tokenTests, CountDownLatch tracker)

Metodi pubblici

void run (TestInformation info, ITestInvocationListener listener)

void setConfiguration ( IConfiguration configuration)

Inietta la IConfiguration in uso.

void setLogRegistry ( ILogRegistry registry)
void setMetricCollectors ( collectors) setMetricCollectors ( collectors)

Imposta l'elenco di IMetricCollector definiti per l'esecuzione del test.

void setSystemStatusChecker ( systemCheckers) setSystemStatusChecker ( systemCheckers)

Imposta ISystemStatusChecker dalla configurazione per il test.

Costruttori pubblici

TestPollerPool

public TestsPoolPoller ( tests, 
                CountDownLatch tracker)

Ctor in cui viene fornito il pool di IRemoteTest .

Parametri
tests : pool di tutti i test di IRemoteTest .

tracker CountDownLatch : un ERROR(/CountDownLatch) condiviso per ottenere il numero di poller in esecuzione.

TestPollerPool

public TestsPoolPoller ( tests, 
                 tokenTests, 
                CountDownLatch tracker)

Parametri
tests

tokenTests

tracker CountDownLatch

Metodi pubblici

correre

public void run (TestInformation info, 
                ITestInvocationListener listener)

Parametri
info TestInformation

listener ITestInvocationListener

Lancia
DeviceNotAvailableException

setConfigurazione

public void setConfiguration (IConfiguration configuration)

Inietta la IConfiguration in uso.

Parametri
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

Parametri
registry ILogRegistry

setMetricCollectors

public void setMetricCollectors ( collectors)

Imposta l'elenco di IMetricCollector definiti per l'esecuzione del test.

Parametri
collectors

setSystemStatusChecker

public void setSystemStatusChecker ( systemCheckers)

Imposta ISystemStatusChecker dalla configurazione per il test.

Parametri
systemCheckers