TestlerHavuzPoller

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

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


Bir test havuzundaki tüm testlerin yürütülmesine izin veren test sarmalayıcısı. Testler başka bir TestsPoolPoller tarafından paylaşılabileceğinden senkronizasyon gereklidir.

YAPILACAKLAR: Belirteç modülü/testleri için işleme ekleyin.

Özet

Kamu inşaatçıları

TestsPoolPoller ( ITestsPool testsPool, CountDownLatch tracker)

IRemoteTest havuzunun sağlandığı Ctor.

Genel yöntemler

void run ( TestInformation info, ITestInvocationListener listener)

Testleri çalıştırır ve sonucu dinleyiciye bildirir.

void setConfiguration ( IConfiguration configuration)

Kullanımdaki IConfiguration enjekte eder.

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

Test çalıştırması için tanımlanan IMetricCollector listesini ayarlar.

void setSystemStatusChecker ( systemCheckers) setSystemStatusChecker ( systemCheckers)

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

Kamu inşaatçıları

TestlerHavuzPoller

public TestsPoolPoller (ITestsPool testsPool, 
                CountDownLatch tracker)

IRemoteTest havuzunun sağlandığı Ctor.

Parametreler
testsPool ITestsPool : ITestsPool tüm testlerden oluşan havuzu.

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

Genel yöntemler

koşmak

public void run (TestInformation info, 
                ITestInvocationListener listener)

Testleri çalıştırır ve sonucu dinleyiciye bildirir.

Parametreler
info TestInformation : Testleri çalıştırmak için yararlı bilgiler içeren TestInformation nesnesi.

listener ITestInvocationListener : test sonuçlarının ITestInvocationListener

Atar
DeviceNotAvailableException

setYapılandırma

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ıştırması için tanımlanan IMetricCollector listesini ayarlar.

Parametreler
collectors

setSystemStatusChecker

public void setSystemStatusChecker ( systemCheckers)

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

Parametreler
systemCheckers