AbstractHostMonitor

public abstract class AbstractHostMonitor
extends Thread implements IHostMonitor

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


Typische Klasse für die Hostzustandsüberwachung. Implementiert „dispatch()“ mit den Besonderheiten des Agents.

Zusammenfassung

Felder

protected Map<String, String> mHostData

protected Queue<IHostMonitor.HostDataPoint> mHostEvents

Öffentliche Konstruktoren

AbstractHostMonitor()

Öffentliche Methoden

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

Methode, die aufgerufen wird, um ein spezielles Ereignis hinzuzufügen, das gesendet werden soll.

abstract void dispatch()

Erfasst und gibt die aktuellen Hostdatenwerte aus.

IHostMonitor.HostMetricType getTag()

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

void run()
void terminate()

Methode, die aufgerufen wird, um den Hostmonitor zu beenden.

Felder

mHostData

protected Map<String, String> mHostData

mHostEvents

protected Queue<IHostMonitor.HostDataPoint> mHostEvents

Öffentliche Konstruktoren

AbstractHostMonitor

public AbstractHostMonitor ()

Öffentliche Methoden

addHostEvent

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

Methode, die aufgerufen wird, um ein spezielles Ereignis hinzuzufügen, das gesendet werden soll.

Parameter
tag IHostMonitor.HostMetricType

event IHostMonitor.HostDataPoint

dispatch

public abstract void dispatch ()

Erfasst und gibt die aktuellen Hostdatenwerte aus. Gibt alle Ereignisse aus der Warteschlange aus.

getTag

public IHostMonitor.HostMetricType getTag ()

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

Gibt Folgendes zurück:
IHostMonitor.HostMetricType

run

public void run ()

terminate

public void terminate ()

Methode, die aufgerufen wird, um den Hostmonitor zu beenden.