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)
Ctor, जहां |
सार्वजनिक तरीके | |
---|---|
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)
Ctor, जहां IRemoteTest
का पूल दिया गया है.
पैरामीटर | |
---|---|
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 |
|