TestsPoolPoller

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

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


โปรแกรมห่อหุ้มการทดสอบที่อนุญาตให้ดำเนินการทดสอบทั้งหมดของกลุ่มการทดสอบ TestsPoolPoller อื่นสามารถแชร์การทดสอบได้ จึงต้องมีการซิงค์

สิ่งที่ต้องทำ: เพิ่มการจัดการสำหรับโมดูล/การทดสอบโทเค็น

สรุป

เครื่องมือสร้างสาธารณะ

TestsPoolPoller(ITestsPool testsPool, CountDownLatch tracker)

Ctor where the pool of IRemoteTest is provided.

เมธอดสาธารณะ

void run(TestInformation info, ITestInvocationListener listener)

เรียกใช้การทดสอบและรายงานผลลัพธ์ไปยังผู้ฟัง

void setConfiguration(IConfiguration configuration)

แทรก IConfiguration ที่ใช้งานอยู่

void setLogRegistry(ILogRegistry registry)
void setMetricCollectors(List<IMetricCollector> collectors)

ตั้งค่ารายการ IMetricCollector ที่กำหนดไว้สำหรับการทดสอบ

void setSystemStatusChecker(List<ISystemStatusChecker> systemCheckers)

ตั้งค่า ISystemStatusChecker จากการกำหนดค่าสำหรับการทดสอบ

เครื่องมือสร้างสาธารณะ

TestsPoolPoller

public TestsPoolPoller (ITestsPool testsPool, 
                CountDownLatch tracker)

Ctor where the pool of IRemoteTest is provided.

พารามิเตอร์
testsPool ITestsPool: ITestsPool กลุ่มการทดสอบทั้งหมด

tracker CountDownLatch: CountDownLatch ที่แชร์เพื่อรับจำนวน Poller ที่ทำงานอยู่

เมธอดสาธารณะ

run

public void run (TestInformation info, 
                ITestInvocationListener listener)

เรียกใช้การทดสอบและรายงานผลลัพธ์ไปยังผู้ฟัง

พารามิเตอร์
info TestInformation: ออบเจ็กต์ TestInformation ที่มีข้อมูลที่เป็นประโยชน์ในการเรียกใช้การทดสอบ

listener ITestInvocationListener: ITestInvocationListener ของผลการทดสอบ

ส่ง
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

แทรก IConfiguration ที่ใช้งานอยู่

พารามิเตอร์
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

พารามิเตอร์
registry ILogRegistry

setMetricCollectors

public void setMetricCollectors (List<IMetricCollector> collectors)

ตั้งค่ารายการ IMetricCollector ที่กำหนดไว้สำหรับการทดสอบ

พารามิเตอร์
collectors List

setSystemStatusChecker

public void setSystemStatusChecker (List<ISystemStatusChecker> systemCheckers)

ตั้งค่า ISystemStatusChecker จากการกำหนดค่าสำหรับการทดสอบ

พารามิเตอร์
systemCheckers List