KümeCihaz Monitörü
public class ClusterDeviceMonitor
extends LabResourceDeviceMonitor
java.lang.Nesne | |||
↳ | com.google.dualhomelab.monitoringagent.resourcemonitoring.LabResourceServiceGrpc.LabResourceServiceImplBase | ||
↳ | com.android.tradefed.monitoring.LabResourceDeviceMonitor | ||
↳ | com.android.tradefed.cluster.ClusterDeviceMonitor |
Bir IDeviceMonitor
Tradefed Küme hizmetine sonuçlarını rapor uygulanması.
Özet
Kamu inşaatçıları | |
---|---|
ClusterDeviceMonitor () |
Genel yöntemler | |
---|---|
void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) Sinyalleri |
void | run () Monitörün @Option alanlarının tümü ayarlandıktan sonra çağrılacak bir yöntem. |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) Verir |
void | stop () Monitörün durdurulması gerektiğinde çağrılacak bir yöntem. |
Kamu inşaatçıları
KümeCihaz Monitörü
public ClusterDeviceMonitor ()
Genel yöntemler
notifyDeviceStateDeğiştir
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
Sinyalleri IDeviceMonitor
bir cihaz devlet değiştirildiğini. İzleme uygulamaları, bu yöntemde yaptıkları işleme miktarını ve IDeviceManager/DeviceLister etkileşimini sınırlamalıdır.
parametreler | |
---|---|
serial | String |
oldState | DeviceAllocationState |
newState | DeviceAllocationState |
Çalıştırmak
public void run ()
Monitörün @Option alanlarının tümü ayarlandıktan sonra çağrılacak bir yöntem.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
Verir DeviceLister
ayarlanması. Listeleyiciyi ayarlamak için başarılı bir denemeden sonra, uygulamalar sonraki tüm denemeleri iptal edebilir.
parametreler | |
---|---|
lister | IDeviceMonitor.DeviceLister |
Dur
public void stop ()
Monitörün durdurulması gerektiğinde çağrılacak bir yöntem.