TestsPoolPoller

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)

提供 IRemoteTest 池的构造函数。

TestsPoolPoller( tests, tokenTests, CountDownLatch tracker)

公共方法

void run(TestInformation info, ITestInvocationListener listener)

void setConfiguration(IConfiguration configuration)

注入正在使用的 IConfiguration

void setLogRegistry(ILogRegistry registry)
void setMetricCollectors( collectors)

设置为测试运行定义的 IMetricCollector 列表。

void setSystemStatusChecker( systemCheckers)

从测试配置中设置 ISystemStatusChecker

公共构造函数

TestsPoolPoller

public TestsPoolPoller ( tests, 
                CountDownLatch tracker)

提供 IRemoteTest 池的构造函数。

参数
tests :所有测试的 IRemoteTest 池。

tracker CountDownLatch:共享的 ERROR(/CountDownLatch),用于获取正在运行的轮询器的数量。

TestsPoolPoller

public TestsPoolPoller ( tests, 
                 tokenTests, 
                CountDownLatch tracker)

参数
tests

tokenTests

tracker CountDownLatch

公共方法

得分

public void run (TestInformation info, 
                ITestInvocationListener listener)

参数
info TestInformation

listener ITestInvocationListener

抛出
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

注入正在使用的 IConfiguration

参数
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

参数
registry ILogRegistry

setMetricCollector

public void setMetricCollectors ( collectors)

设置为测试运行定义的 IMetricCollector 列表。

参数
collectors

setSystemStatusChecker

public void setSystemStatusChecker ( systemCheckers)

从测试配置中设置 ISystemStatusChecker

参数
systemCheckers