Monitor urządzeń w klastrze

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


Implementacja IDeviceMonitor, która zgłasza wyniki do usługi klastra Tradefed.

Podsumowanie

Konstruktory publiczne

ClusterDeviceMonitor()

Metody publiczne

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

Wskazuje IDeviceMonitor, że stan urządzenia uległ zmianie.

void run()

Metoda, która będzie wywoływana po ustawieniu wszystkich pól @Option monitora.

void setDeviceLister(IDeviceMonitor.DeviceLister lister)

Umożliwia ustawienie pola DeviceLister.

void stop()

Metoda, która będzie wywoływana, gdy konieczne będzie zatrzymanie monitora.

Konstruktory publiczne

Monitor urządzeń w klastrze

public ClusterDeviceMonitor ()

Metody publiczne

powiadom o zmianie stanu urządzenia

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

Wskazuje IDeviceMonitor, że stan urządzenia uległ zmianie. Monitorowanie implementacji powinno ograniczać ilość przetwarzania Interakcja z parametrem IDeviceManager/DeviceLister tą metodą.

Parametry
serial String

oldState DeviceAllocationState

newState DeviceAllocationState

home run

public void run ()

Metoda, która będzie wywoływana po ustawieniu wszystkich pól @Option monitora.

setDeviceLister

public void setDeviceLister (IDeviceMonitor.DeviceLister lister)

Umożliwia ustawienie pola DeviceLister. Po udanej próbie ustawienia Listera mogą odrzucać wszystkie kolejne próby.

Parametry
lister IDeviceMonitor.DeviceLister

zatrzymaj

public void stop ()

Metoda, która będzie wywoływana, gdy konieczne będzie zatrzymanie monitora.