TestsPoolPoller
public
final
class
TestsPoolPoller
extends Object
implements
IConfigurationReceiver,
IMetricCollectorReceiver,
IRemoteTest,
ISystemStatusCheckerReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.invoker.shard.TestsPoolPoller |
テストプールのすべてのテストを実行できるテスト ラッパー。テストは別の TestsPoolPoller と共有できるため、同期が必要です。
TODO: トークン モジュール/テストの処理を追加します。
概要
パブリック コンストラクタ | |
|---|---|
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 のプールが指定される Ctor。
| パラメータ | |
|---|---|
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 |
|