AbstractHostMonitor

public abstract class AbstractHostMonitor
extends Object implements IHostMonitor

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


Typische Klasse für die Überwachung der Hostgesundheit. Implementiert „dispatch()“ mit den Details des Agents.

Zusammenfassung

Felder

protected mHostData

protected mHostEvents

Öffentliche Konstruktoren

AbstractHostMonitor()

Öffentliche Methoden

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

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

abstract void dispatch()

Erfasst und sendet die aktuellen Hostdatenwerte.

IHostMonitor.HostMetricType getTag()

Gibt das Tag zurück, das angibt, welche IHostMonitor-Klasse erreicht werden soll.

void run()
void terminate()

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

Felder

mHostData

protected  mHostData

mHostEvents

protected  mHostEvents

Öffentliche Konstruktoren

AbstractHostMonitor

public AbstractHostMonitor ()

Öffentliche Methoden

addHostEvent

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

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

Parameter
tag IHostMonitor.HostMetricType

event IHostMonitor.HostDataPoint

Versand

public abstract void dispatch ()

Erfasst und sendet die aktuellen Hostdatenwerte. Sollte die Ereignisse der Warteschlange senden, falls vorhanden.

getTag

public IHostMonitor.HostMetricType getTag ()

Gibt das Tag zurück, das angibt, welche IHostMonitor-Klasse erreicht werden soll.

Returns
IHostMonitor.HostMetricType

Homerun

public void run ()

beenden

public void terminate ()

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