AbstractHostMonitor

public abstract class AbstractHostMonitor
extends Object implements IHostMonitor

java.lang.Object
   ↳ com.android.tradefed.util.hostmetric.AbstractHostMonitor


Classe tipica per il monitoraggio della salute dell'host. Implementa dispatch() con le specifiche dell'agente.

Riepilogo

Campi

protected mHostData

protected mHostEvents

Costruttori pubblici

AbstractHostMonitor()

Metodi pubblici

void addHostEvent(IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)

Un metodo che verrà chiamato per aggiungere un evento speciale da inviare.

abstract void dispatch()

Raccoglie ed emette i valori dei dati dell'host correnti.

IHostMonitor.HostMetricType getTag()

Restituisce il tag che identifica la "classe" di IHostMonitor da raggiungere.

void run()
void terminate()

Un metodo che verrà chiamato per interrompere il monitoraggio dell'host.

Campi

mHostData

protected  mHostData

mHostEvents

protected  mHostEvents

Costruttori pubblici

AbstractHostMonitor

public AbstractHostMonitor ()

Metodi pubblici

addHostEvent

public void addHostEvent (IHostMonitor.HostMetricType tag, 
                IHostMonitor.HostDataPoint event)

Un metodo che verrà chiamato per aggiungere un evento speciale da inviare.

Parametri
tag IHostMonitor.HostMetricType

event IHostMonitor.HostDataPoint

invio

public abstract void dispatch ()

Raccoglie ed emette i valori dei dati dell'host correnti. Deve emettere gli eventi della coda, se presenti.

getTag

public IHostMonitor.HostMetricType getTag ()

Restituisce il tag che identifica la "classe" di IHostMonitor da raggiungere.

Ritorni
IHostMonitor.HostMetricType

run

public void run ()

terminare

public void terminate ()

Un metodo che verrà chiamato per interrompere il monitoraggio dell'host.