TestsPoolPoller
public
final
class
TestsPoolPoller
extends Object
implements
IConfigurationReceiver,
IMetricCollectorReceiver,
IRemoteTest,
ISystemStatusCheckerReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.invoker.shard.TestsPoolPoller |
可執行測試集合的所有測試的測試包裝函式。測試可由其他 TestsPoolPoller 共用,因此需要同步處理。
待辦事項:新增權杖模組/測試的處理程序。
摘要
公用建構函式 | |
|---|---|
TestsPoolPoller(ITestsPool testsPool, CountDownLatch tracker)
提供 |
|
公用方法 | |
|---|---|
void
|
run(TestInformation info, ITestInvocationListener listener)
執行測試,並將結果回報給監聽器。 |
void
|
setConfiguration(IConfiguration configuration)
插入正在使用的 |
void
|
setLogRegistry(ILogRegistry registry)
|
void
|
setMetricCollectors(
設定為測試執行作業定義的 |
void
|
setSystemStatusChecker(
從測試設定中設定 |
公用建構函式
TestsPoolPoller
public TestsPoolPoller (ITestsPool testsPool, CountDownLatch tracker)
提供 IRemoteTest 集區的建構函式。
| 參數 | |
|---|---|
testsPool |
ITestsPool:ITestsPool 的所有測試集區。 |
tracker |
CountDownLatch:用於取得執行中輪詢器數量的 ERROR(/CountDownLatch)。 |
公用方法
得分
public void run (TestInformation info, ITestInvocationListener listener)
執行測試,並將結果回報給監聽器。
| 參數 | |
|---|---|
info |
TestInformation:包含執行測試所需實用資訊的 TestInformation 物件。 |
listener |
ITestInvocationListener:測試結果的 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 |
|