TestsPoolPoller

public final class TestsPoolPoller
extends Object implements IRemoteTest, IConfigurationReceiver, ISystemStatusCheckerReceiver, IMetricCollectorReceiver

java.lang.Object
   ↳ com.android.tradefed.invoker.shard.TestsPoolPoller


Test havuzundaki tüm testlerin yürütülmesine olanak tanıyan test sarmalayıcısı. Testler başka bir TestsPoolPoller tarafından paylaşılabileceğinden senkronizasyon gerekir.

TODO: Jeton modülü/testleri için işlem ekleyin.

Özet

Herkese açık kurucular

TestsPoolPoller( tests, CountDownLatch tracker)

IRemoteTest havuzunun sağlandığı kurucu.

TestsPoolPoller( tests, tokenTests, CountDownLatch tracker)

Herkese açık yöntemler

void run(TestInformation info, ITestInvocationListener listener)

void setConfiguration(IConfiguration configuration)

Kullanımdaki IConfiguration'ü enjekte eder.

void setLogRegistry(ILogRegistry registry)
void setMetricCollectors( collectors)

Test çalışması için tanımlanan IMetricCollector öğelerinin listesini ayarlar.

void setSystemStatusChecker( systemCheckers)

Test için yapılandırmadaki ISystemStatusChecker öğelerini ayarlar.

Herkese açık kurucular

TestsPoolPoller

public TestsPoolPoller ( tests, 
                CountDownLatch tracker)

IRemoteTest havuzunun sağlandığı kurucu.

Parametreler
tests : IRemoteTest'un tüm testleri içeren havuzu.

tracker CountDownLatch: Çalışan poller sayısını almak için paylaşılan bir ERROR(/CountDownLatch).

TestsPoolPoller

public TestsPoolPoller ( tests, 
                 tokenTests, 
                CountDownLatch tracker)

Parametreler
tests

tokenTests

tracker CountDownLatch

Herkese açık yöntemler

çalıştır

public void run (TestInformation info, 
                ITestInvocationListener listener)

Parametreler
info TestInformation

listener ITestInvocationListener

Atışlar
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Kullanımdaki IConfiguration'ü enjekte eder.

Parametreler
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

Parametreler
registry ILogRegistry

setMetricCollectors

public void setMetricCollectors ( collectors)

Test çalışması için tanımlanan IMetricCollector öğelerinin listesini ayarlar.

Parametreler
collectors

setSystemStatusChecker

public void setSystemStatusChecker ( systemCheckers)

Test için yapılandırmadaki ISystemStatusChecker öğelerini ayarlar.

Parametreler
systemCheckers