AbstractHostMonitor

public abstract class AbstractHostMonitor
extends Object implements IHostMonitor

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


Classe tipica per il monitoraggio dell'integrità dell'host. implementare 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 host correnti.

IHostMonitor.HostMetricType getTag ()

Restituisce il tag che identifica quale 'classe' di IHostMonitor raggiungere.

void run ()
void terminate ()

Un metodo che verrà chiamato per arrestare Host Monitor.

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

spedizione

public abstract void dispatch ()

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

getTag

public IHostMonitor.HostMetricType getTag ()

Restituisce il tag che identifica quale 'classe' di IHostMonitor raggiungere.

ritorna
IHostMonitor.HostMetricType

correre

public void run ()

terminare

public void terminate ()

Un metodo che verrà chiamato per arrestare Host Monitor.