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 |
Sonuçları Tradefed Cluster hizmetine raporlayan bir IDeviceMonitor
uygulaması.
Özet
Kamu inşaatçıları | |
---|---|
ClusterDeviceMonitor () |
Genel yöntemler | |
---|---|
void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) |
void | run () Monitörün tüm @Option alanları ayarlandıktan sonra çağrılacak bir yöntem. |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) |
void | stop () Monitörün durdurulması gerektiğinde çağrılacak bir yöntem. |
Kamu inşaatçıları
ClusterDeviceMonitor
public ClusterDeviceMonitor ()
Genel yöntemler
notifyDeviceStateChange
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
IDeviceMonitor
bir aygıt durumunun değiştirildiğini bildirir. Monitör uygulamaları, bu yöntemde yaptıkları işlem miktarını ve IDeviceManager/DeviceLister etkileşimini sınırlamalıdır.
Parametreler | |
---|---|
serial | String |
oldState | DeviceAllocationState |
newState | DeviceAllocationState |
koşmak
public void run ()
Monitörün tüm @Option alanları ayarlandıktan sonra çağrılacak bir yöntem.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
DeviceLister
ayarlanmasına izin verir. Lister'ı başarılı bir şekilde ayarlama girişiminden sonra uygulamalar sonraki tüm girişimleri iptal edebilir.
Parametreler | |
---|---|
lister | IDeviceMonitor.DeviceLister |
durmak
public void stop ()
Monitörün durdurulması gerektiğinde çağrılacak bir yöntem.