Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
이 페이지는 Cloud Translation API를 통해 번역되었습니다.
Switch to English

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

Ctor where the pool of IRemoteTest is provided.

TestsPoolPoller( tests, tokenTests, CountDownLatch tracker)

Public methods

void run(TestInformation info, ITestInvocationListener 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 ( tests, 
                CountDownLatch tracker)

Ctor where the pool of IRemoteTest is provided.

Parameters
tests : IRemoteTests pool of all tests.

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

TestsPoolPoller

public TestsPoolPoller ( tests, 
                 tokenTests, 
                CountDownLatch tracker)

Parameters
tests

tokenTests

tracker CountDownLatch

Public methods

run

public void run (TestInformation info, 
                ITestInvocationListener listener)

Parameters
info TestInformation

listener ITestInvocationListener

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