TestsPoolPoller
public
final
class
TestsPoolPoller
extends Object
implements
IRemoteTest,
IConfigurationReceiver,
ISystemStatusCheckerReceiver,
IMetricCollectorReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.invoker.shard.TestsPoolPoller |
可執行測試集合的所有測試的測試包裝函式。測試可由其他 TestsPoolPoller 共用,因此需要同步處理。
TODO:新增權杖模組/測試的處理程序。
摘要
公用建構函式 | |
|---|---|
TestsPoolPoller(
提供 |
|
TestsPoolPoller(
|
|
公用方法 | |
|---|---|
void
|
run(TestInformation info, ITestInvocationListener listener)
|
void
|
setConfiguration(IConfiguration configuration)
插入正在使用的 |
void
|
setLogRegistry(ILogRegistry registry)
|
void
|
setMetricCollectors(
設定為測試執行作業定義的 |
void
|
setSystemStatusChecker(
從測試設定中設定 |
公用建構函式
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 |
setMetricCollectors
public void setMetricCollectors (collectors)
設定為測試執行作業定義的 IMetricCollector 清單。
| 參數 | |
|---|---|
collectors |
|
setSystemStatusChecker
public void setSystemStatusChecker (systemCheckers)
從測試的設定中設定 ISystemStatusChecker。
| 參數 | |
|---|---|
systemCheckers |
|