ClusterDeviceMonitor
public class ClusterDeviceMonitor
extends LabResourceDeviceMonitor
java.lang.Object | |||
↳ | com.google.dualhomelab.monitoringagent.resourcemonitoring.LabResourceServiceGrpc.LabResourceServiceImplBase | ||
↳ | com.android.tradefed.monitoring.LabResourceDeviceMonitor | ||
↳ | com.android.tradefed.cluster.ClusterDeviceMonitor |
IDeviceMonitor
Tradefedクラスタサービスに結果を報告する実装。
概要
パブリックコンストラクター | |
---|---|
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 ()
モニターを停止する必要があるときに呼び出されるメソッド。