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 ()
モニターを停止する必要があるときに呼び出されるメソッド。