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 |
結果を Tradefed Cluster サービスに報告するIDeviceMonitor
実装。
まとめ
パブリック コンストラクター | |
---|---|
ClusterDeviceMonitor () |
公開メソッド | |
---|---|
void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) デバイスの状態が変更されたことを |
void | run () Monitor の @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 ()
Monitor の @Option フィールドがすべて設定された後に呼び出されるメソッド。
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
DeviceLister
を設定できるようにします。 Lister の設定に成功した後、実装はそれ以降のすべての試行を破棄する場合があります。
パラメーター | |
---|---|
lister | IDeviceMonitor.DeviceLister |
ストップ
public void stop ()
モニターを停止する必要があるときに呼び出されるメソッド。