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 |
Sebuah IDeviceMonitor
implementasi yang melaporkan hasil ke layanan Tradefed Cluster.
Ringkasan
Konstruktor publik | |
---|---|
ClusterDeviceMonitor () |
Metode publik | |
---|---|
void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) Sinyal |
void | run () Metode yang akan dipanggil setelah semua bidang @Option Monitor telah disetel. |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) Memungkinkan |
void | stop () Metode yang akan dipanggil saat Monitor perlu dihentikan. |
Konstruktor publik
ClusterDeviceMonitor
public ClusterDeviceMonitor ()
Metode publik
notifyDeviceStateChange
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
Sinyal IDeviceMonitor
bahwa negara perangkat telah berubah. Implementasi monitor harus membatasi jumlah pemrosesan dan interaksi IDeviceManager/DeviceLister yang mereka lakukan dalam metode ini.
Parameter | |
---|---|
serial | String |
oldState | DeviceAllocationState |
newState | DeviceAllocationState |
Lari
public void run ()
Metode yang akan dipanggil setelah semua bidang @Option Monitor telah disetel.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
Memungkinkan DeviceLister
harus ditetapkan. Setelah upaya berhasil untuk mengatur Lister, implementasi dapat membuang semua upaya berikutnya.
Parameter | |
---|---|
lister | IDeviceMonitor.DeviceLister |
berhenti
public void stop ()
Metode yang akan dipanggil saat Monitor perlu dihentikan.