测试池轮询器
public final class TestsPoolPoller
extends Object
implements IRemoteTest, IConfigurationReceiver , ISystemStatusCheckerReceiver , IMetricCollectorReceiver
java.lang.Object | |
↳ | com.android.tradefed.invoker.shard.TestsPoolPoller |
测试包装器允许执行测试池中的所有测试。测试可以由另一个TestsPoolPoller
共享,因此需要同步。
TODO:添加对令牌模块/测试的处理。
概括
公共构造函数 | |
---|---|
TestsPoolPoller ( tests, CountDownLatch tracker) TestsPoolPoller ( tests, CountDownLatch tracker) 提供 | |
TestsPoolPoller ( tests, tokenTests, CountDownLatch tracker) TestsPoolPoller ( tests, tokenTests, CountDownLatch tracker) TestsPoolPoller ( tests, tokenTests, CountDownLatch tracker) |
公共方法 | |
---|---|
void | run (TestInformation info, ITestInvocationListener listener) |
void | setConfiguration ( IConfiguration configuration) 注入正在使用的 |
void | setLogRegistry ( ILogRegistry registry) |
void | setMetricCollectors ( collectors) setMetricCollectors ( collectors) 设置为测试运行定义的 |
void | setSystemStatusChecker ( systemCheckers) setSystemStatusChecker ( systemCheckers) 从测试配置中设置 |
公共构造函数
测试池轮询器
public TestsPoolPoller (tests, CountDownLatch tracker)
提供IRemoteTest
池的 Ctor。
参数 | |
---|---|
tests | IRemoteTest 的所有测试池。 |
tracker | CountDownLatch :共享一个ERROR(/CountDownLatch) 以获取正在运行的轮询器的数量。 |
测试池轮询器
public TestsPoolPoller (tests, tokenTests, CountDownLatch tracker)
参数 | |
---|---|
tests | |
tokenTests | |
tracker | CountDownLatch |
公共方法
跑步
public void run (TestInformation info, ITestInvocationListener listener)
参数 | |
---|---|
info | TestInformation |
listener | ITestInvocationListener |
投掷 | |
---|---|
DeviceNotAvailableException |
设置配置
public void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
参数 | |
---|---|
configuration | IConfiguration |
设置MetricCollectors
public void setMetricCollectors (collectors)
设置为测试运行定义的IMetricCollector
列表。
参数 | |
---|---|
collectors |
设置系统状态检查器
public void setSystemStatusChecker (systemCheckers)
从测试配置中设置ISystemStatusChecker
。
参数 | |
---|---|
systemCheckers |