DeviceMonitorマルチプレクサ
public class DeviceMonitorMultiplexer
extends Object
implements IDeviceMonitor
java.lang.Object | |
↳ | com.android.tradefed.device.DeviceMonitorMultiplexer |
リクエストを複数の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 () Monitor の @Option フィールドがすべて設定された後に呼び出されるメソッド。 |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) |
void | stop () モニターを停止する必要があるときに呼び出されるメソッド。 |
パブリック コンストラクター
DeviceMonitorマルチプレクサ
public DeviceMonitorMultiplexer ()
公開メソッド
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
パラメーター | |
---|---|
globalDeviceMonitor | IDeviceMonitor |
addMonitor
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 ()
Monitor の @Option フィールドがすべて設定された後に呼び出されるメソッド。
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
DeviceLister
を設定できるようにします。 Lister の設定に成功した後、実装はそれ以降のすべての試行を破棄する場合があります。
パラメーター | |
---|---|
lister | IDeviceMonitor.DeviceLister |
ストップ
public void stop ()
モニターを停止する必要があるときに呼び出されるメソッド。