AbstractHostMonitor
public
abstract
class
AbstractHostMonitor
extends Thread
implements
IHostMonitor
| java.lang.Object | ||
| ↳ | java.lang.Thread | |
| ↳ | com.android.tradefed.util.hostmetric.AbstractHostMonitor | |
Classe tipica per il monitoraggio dell'integrità dell'host. Implementazione di dispatch() con dettagli specifici dell'agente.
Riepilogo
Campi | |
|---|---|
protected
Map<String, String> |
mHostData
|
protected
Queue<IHostMonitor.HostDataPoint> |
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 corrente. |
IHostMonitor.HostMetricType
|
getTag()
Restituisce il tag che identifica la "classe" di |
void
|
run()
|
void
|
terminate()
Un metodo che verrà chiamato per arrestare il monitoraggio host. |
Campi
mHostData
protected Map<String, String> mHostData
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 |
dispatch
public abstract void dispatch ()
Raccoglie ed emette i valori dei dati dell'host corrente. Should emette gli eventi della coda, se presenti.
getTag
public IHostMonitor.HostMetricType getTag ()
Restituisce il tag che identifica la "classe" di IHostMonitor da raggiungere.
| Resi | |
|---|---|
IHostMonitor.HostMetricType |
|
run
public void run ()
chiudere
public void terminate ()
Un metodo che verrà chiamato per arrestare il monitoraggio host.