AbstractHostMonitor

public abstract class AbstractHostMonitor
extends Object implements IHostMonitor

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


Typische Klasse für Host Health Monitoring. Implementierung von „dispatch()“ mit Angaben zum Agenten.

Zusammenfassung

Felder

protected mHostData

protected mHostEvents

Öffentliche Bauträger

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 sendet die aktuellen Hostdatenwerte.

IHostMonitor.HostMetricType getTag ()

Gibt das Tag zurück, das angibt, welche „Klasse“ von IHostMonitor erreicht werden soll.

void run ()
void terminate ()

Eine Methode, die aufgerufen wird, um den Host-Monitor zu stoppen.

Felder

mHostData

protected  mHostData

mHostEvents

protected  mHostEvents

Öffentliche Bauträger

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 sendet die aktuellen Hostdatenwerte. 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.