DeviceMonitorMultiplexer
public
class
DeviceMonitorMultiplexer
extends Object
implements
IDeviceMonitor
| java.lang.Object | |
| ↳ | com.android.tradefed.device.DeviceMonitorMultiplexer |
מחלקת proxy להפצת בקשות למספר IDeviceMonitors.
סיכום
constructors ציבוריים | |
|---|---|
DeviceMonitorMultiplexer()
|
|
methods ציבוריים | |
|---|---|
void
|
addMonitor(IDeviceMonitor globalDeviceMonitor)
|
void
|
addMonitors(List<IDeviceMonitor> globalDeviceMonitors)
|
void
|
notifyDeviceStateChange(String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
אות שמציין ל- |
void
|
removeMonitor(IDeviceMonitor mon)
|
void
|
run()
שיטה שתופעל אחרי שכל השדות של Monitor מסוג @Option יוגדרו. |
void
|
setDeviceLister(IDeviceMonitor.DeviceLister lister)
מאפשר להגדיר את |
void
|
stop()
Method שיופעל כשצריך להפסיק את המעקב. |
constructors ציבוריים
DeviceMonitorMultiplexer
public DeviceMonitorMultiplexer ()
methods ציבוריים
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
| פרמטרים | |
|---|---|
globalDeviceMonitor |
IDeviceMonitor |
addMonitors
public void addMonitors (List<IDeviceMonitor> globalDeviceMonitors)
| פרמטרים | |
|---|---|
globalDeviceMonitors |
List |
notifyDeviceStateChange
public void notifyDeviceStateChange (String serial,
DeviceAllocationState oldState,
DeviceAllocationState newState)אות שמציין ל-IDeviceMonitor שמצב המכשיר השתנה.
הטמעות של Monitor צריכות להגביל את כמות העיבוד והאינטראקציה עם iDeviceManager/DeviceLister בשיטה הזו.
| פרמטרים | |
|---|---|
serial |
String |
oldState |
DeviceAllocationState |
newState |
DeviceAllocationState |
ראן
public void run ()
שיטה שתופעל אחרי שכל השדות של Monitor מסוג @Option יוגדרו.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
מאפשר להגדיר את DeviceLister. אחרי ניסיון מוצלח להגדיר את ה-Lister, יכול להיות שההטמעות יבטלו את כל הניסיונות הבאים.
| פרמטרים | |
|---|---|
lister |
IDeviceMonitor.DeviceLister |
עצור
public void stop ()
Method שיופעל כשצריך להפסיק את המעקב.