AbstractHostMonitor
public abstract class AbstractHostMonitor
extends Object
implements IHostMonitor
java.lang.Object | |
↳ | com.android.tradefed.util.hostmetric.AbstractHostMonitor |
Typische Klasse für die Überwachung des Hostzustands. Implementieren von dispatch() mit Besonderheiten des Agenten.
Zusammenfassung
Felder | |
---|---|
protected | mHostData |
protected | mHostEvents
|
Öffentliche Konstrukteure | |
---|---|
AbstractHostMonitor () |
Öffentliche Methoden | |
---|---|
void | addHostEvent ( IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event) Eine Methode, die aufgerufen wird, um ein spezielles zu sendendes Ereignis hinzuzufügen. |
abstract void | dispatch () Erfasst und gibt die aktuellen Hostdatenwerte aus. |
IHostMonitor.HostMetricType | getTag () Gibt das Tag zurück, das angibt, welche „Klasse“ von |
void | run () |
void | terminate () Eine Methode, die aufgerufen wird, um den Host-Monitor zu stoppen. |
Felder
mHostData
protectedmHostData
mHostEvents
protectedmHostEvents
Öffentliche Konstrukteure
AbstractHostMonitor
public AbstractHostMonitor ()
Öffentliche Methoden
addHostEvent
public void addHostEvent (IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
Eine Methode, die aufgerufen wird, um ein spezielles zu sendendes Ereignis hinzuzufügen.
Parameter | |
---|---|
tag | IHostMonitor.HostMetricType |
event | IHostMonitor.HostDataPoint |
versenden
public abstract void dispatch ()
Erfasst und gibt die aktuellen Hostdatenwerte aus. Sollte die Ereignisse der Warteschlange ausgeben, falls vorhanden.
getTag
public IHostMonitor.HostMetricType getTag ()
Gibt das Tag zurück, das angibt, welche „Klasse“ von IHostMonitor
erreicht werden soll.
Kehrt zurück | |
---|---|
IHostMonitor.HostMetricType |
laufen
public void run ()
beenden
public void terminate ()
Eine Methode, die aufgerufen wird, um den Host-Monitor zu stoppen.