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 Küme hizmetine bildiren bir IDeviceMonitor uygulaması.

Özet

kamu inşaatçılar

ClusterDeviceMonitor ()

Genel yöntemler

void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)

IDeviceMonitor bir aygıt durumunun değiştirildiğini bildirir.

void run ()

Monitörün tüm @Option alanları ayarlandıktan sonra çağrılacak bir yöntem.

void setDeviceLister ( IDeviceMonitor.DeviceLister lister)

DeviceLister ayarlanmasına izin verir.

void stop ()

Monitörün durdurulması gerektiğinde çağrılacak bir yöntem.

kamu inşaatçılar

ClusterDeviceMonitor

public ClusterDeviceMonitor ()

Genel yöntemler

CihazDevletDeğişimini bildir

public void notifyDeviceStateChange (String serial, 
                DeviceAllocationState oldState, 
                DeviceAllocationState newState)

IDeviceMonitor bir aygıt durumunun değiştirildiğini bildirir. İ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

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'ı ayarlamak için başarılı bir girişimden 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.