DeviceMonitorMultiplexer
public class DeviceMonitorMultiplexer
extends Object
implements IDeviceMonitor
java.lang.Object | |
↳ | com.android.tradefed.device.DeviceMonitorMultiplexer |
מחלקת proxy להפצת בקשות למספר IDeviceMonitor
.
סיכום
בנאים ציבוריים | |
---|---|
DeviceMonitorMultiplexer () |
שיטות ציבוריות | |
---|---|
void | addMonitor ( IDeviceMonitor globalDeviceMonitor) |
void | addMonitors ( globalDeviceMonitors) addMonitors ( globalDeviceMonitors) |
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 |
הודע ל-DeviceStateChange
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, יישומים עשויים לבטל את כל הניסיונות הבאים.
פרמטרים | |
---|---|
lister | IDeviceMonitor.DeviceLister |
תפסיק
public void stop ()
שיטה שתיקרא כאשר יהיה צורך לעצור את המוניטור.