TestsPoolPoller

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

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


Tests wrapper that allow to execute all the tests of a pool of tests. Tests can be shared by another TestsPoolPoller so synchronization is required.

TODO: Add handling for token module/tests.

Summary

Public constructors

TestsPoolPoller(ITestsPool testsPool, CountDownLatch tracker)

Ctor where the pool of IRemoteTest is provided.

Public methods

void run(TestInformation info, ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

void setConfiguration(IConfiguration configuration)

Injects the IConfiguration in use.

void setLogRegistry(ILogRegistry registry)
void setMetricCollectors( collectors)

Sets the list of IMetricCollectors defined for the test run.

void setSystemStatusChecker( systemCheckers)

Sets the ISystemStatusCheckers from the configuration for the test.

Public constructors

TestsPoolPoller

public TestsPoolPoller (ITestsPool testsPool, 
                CountDownLatch tracker)

Ctor where the pool of IRemoteTest is provided.

Parameters
testsPool ITestsPool: ITestsPools pool of all tests.

tracker CountDownLatch: a ERROR(/CountDownLatch) shared to get the number of running poller.

Public methods

run

public void run (TestInformation info, 
                ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
info TestInformation: The TestInformation object containing useful information to run tests.

listener ITestInvocationListener: the ITestInvocationListener of test results

Throws
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Injects the IConfiguration in use.

Parameters
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

Parameters
registry ILogRegistry

setMetricCollectors

public void setMetricCollectors ( collectors)

Sets the list of IMetricCollectors defined for the test run.

Parameters
collectors

setSystemStatusChecker

public void setSystemStatusChecker ( systemCheckers)

Sets the ISystemStatusCheckers from the configuration for the test.

Parameters
systemCheckers