測試池輪詢
public final class TestsPoolPoller
extends Object
implements IRemoteTest, IConfigurationReceiver , ISystemStatusCheckerReceiver , IMetricCollectorReceiver
java.lang.Object | |
↳ | com.android.tradefed.invoker.shard.TestsPoolPoller |
測試包裝器,可以執行測試池中的所有測試。測試可以由另一個TestsPoolPoller
共享,因此需要同步。
待辦事項:添加對令牌模塊/測試的處理。
概要
公共建設者 | |
---|---|
TestsPoolPoller ( tests, CountDownLatch tracker) TestsPoolPoller ( tests, CountDownLatch tracker) 提供IRemoteTest池的 | |
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池的IRemoteTest
。
參量 | |
---|---|
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 |
setConfiguration
public void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
參量 | |
---|---|
configuration | IConfiguration |
setMetricCollectors
public void setMetricCollectors (collectors)
設置為測試運行定義的IMetricCollector
的列表。
參量 | |
---|---|
collectors |
setSystemStatusChecker
public void setSystemStatusChecker (systemCheckers)
從測試的配置設置ISystemStatusChecker
。
參量 | |
---|---|
systemCheckers |