DeviceMonitorMultiplexer
public
class
DeviceMonitorMultiplexer
extends Object
implements
IDeviceMonitor
| java.lang.Object | |
| ↳ | com.android.tradefed.device.DeviceMonitorMultiplexer |
فئة وكيل لنشر الطلبات إلى IDeviceMonitor متعددة
ملخّص
وظائف الإنشاء العامة | |
|---|---|
DeviceMonitorMultiplexer()
|
|
الطرق العامة | |
|---|---|
void
|
addMonitor(IDeviceMonitor globalDeviceMonitor)
|
void
|
addMonitors(
|
void
|
notifyDeviceStateChange(String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
يُرسِل إشارة إلى |
void
|
removeMonitor(IDeviceMonitor mon)
|
void
|
run()
طريقة سيتمّ استدعاؤها بعد ضبط جميع حقول @Option في "المُراقب". |
void
|
setDeviceLister(IDeviceMonitor.DeviceLister lister)
للسماح بضبط |
void
|
stop()
طريقة سيتمّ استدعاؤها عند الحاجة إلى إيقاف "المراقب" |
وظائف الإنشاء العامة
DeviceMonitorMultiplexer
public DeviceMonitorMultiplexer ()
الطرق العامة
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
| المعلمات | |
|---|---|
globalDeviceMonitor |
IDeviceMonitor |
addMonitors
public void addMonitors (globalDeviceMonitors)
| المعلمات | |
|---|---|
globalDeviceMonitors |
|
notifyDeviceStateChange
public void notifyDeviceStateChange (String serial,
DeviceAllocationState oldState,
DeviceAllocationState newState)يُرسِل إشارة إلى IDeviceMonitor بأنّه تم تغيير حالة جهاز.
يجب أن تحدّ عمليات تنفيذ مراقبة الأجهزة من مقدار المعالجة و
التفاعل مع IDeviceManager/DeviceLister الذي يتمّ إجراؤه في هذه الطريقة.
| المعلمات | |
|---|---|
serial |
String |
oldState |
DeviceAllocationState |
newState |
DeviceAllocationState |
ضربة طويلة
public void run ()
طريقة سيتمّ استدعاؤها بعد ضبط جميع حقول @Option في "المُراقب".
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
للسماح بضبط DeviceLister بعد محاولة ناجحة لضبط أداة "القائمة"،
قد تتجاهل عمليات التنفيذ جميع المحاولات اللاحقة.
| المعلمات | |
|---|---|
lister |
IDeviceMonitor.DeviceLister |
محطة توقّف
public void stop ()
طريقة سيتمّ استدعاؤها عند الحاجة إلى إيقاف "المراقب"