ClusterDeviceMonitor
public class ClusterDeviceMonitor
extends Object
implements IDeviceMonitor
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterDeviceMonitor |
IDeviceMonitor
サービスに結果を報告するIDeviceMonitor
実装。
概要
パブリックコンストラクター | |
---|---|
ClusterDeviceMonitor () |
パブリックメソッド | |
---|---|
void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) デバイスの状態が変更されたことを |
void | run () モニターのすべての@Optionフィールドが設定された後に呼び出されるメソッド。 |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) |
void | stop () モニターを停止する必要があるときに呼び出されるメソッド。 |
パブリックコンストラクター
ClusterDeviceMonitor
public ClusterDeviceMonitor ()
パブリックメソッド
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 ()
モニターを停止する必要があるときに呼び出されるメソッド。