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