測試池輪詢器

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)

提供IRemoteTest池的 Ctor。

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)

注入正在使用的IConfiguration

void setLogRegistry ( ILogRegistry registry)
void setMetricCollectors ( collectors) setMetricCollectors ( collectors)

設定為測試運行定義的IMetricCollector清單。

void setSystemStatusChecker ( systemCheckers) setSystemStatusChecker ( systemCheckers)

從測試配置設定ISystemStatusChecker

公共構造函數

測試池輪詢器

public TestsPoolPoller ( tests, 
                CountDownLatch tracker)

提供IRemoteTest池的 Ctor。

參數
testsIRemoteTest的所有測試池。

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

設定日誌註冊表

public void setLogRegistry (ILogRegistry registry)

參數
registry ILogRegistry

設定MetricCollectors

public void setMetricCollectors ( collectors)

設定為測試運行定義的IMetricCollector清單。

參數
collectors

設定係統狀態檢查器

public void setSystemStatusChecker ( systemCheckers)

從測試配置設定ISystemStatusChecker

參數
systemCheckers