AbstractHostMonitor
public abstract class AbstractHostMonitor
extends Object
implements IHostMonitor
java.lang.Objek | |
↳ | com.android.tradefed.util.hostmetric.AbstractHostMonitor |
Kelas tipikal untuk Pemantauan Kesehatan Tuan Rumah. mengimplementasikan dispatch() dengan spesifikasi agen.
Ringkasan
Bidang | |
---|---|
protected | mHostData |
protected | mHostEvents
|
Konstruktor publik | |
---|---|
AbstractHostMonitor () |
Metode publik | |
---|---|
void | addHostEvent ( IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event) Metode yang akan dipanggil untuk menambahkan event khusus yang akan dikirim. |
abstract void | dispatch () Kumpulkan dan Pancarkan nilai data host saat ini. |
IHostMonitor.HostMetricType | getTag () Kembalikan tag yang mengidentifikasi 'kelas' |
void | run () |
void | terminate () Metode yang akan dipanggil untuk menghentikan Host Monitor. |
Bidang
mHostData
protectedmHostData
mHostEvents
protectedmHostEvents
Konstruktor publik
AbstractHostMonitor
public AbstractHostMonitor ()
Metode publik
addHostEvent
public void addHostEvent (IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
Metode yang akan dipanggil untuk menambahkan event khusus yang akan dikirim.
Parameter | |
---|---|
tag | IHostMonitor.HostMetricType |
event | IHostMonitor.HostDataPoint |
menugaskan
public abstract void dispatch ()
Kumpulkan dan Pancarkan nilai data host saat ini. Harus memancarkan Peristiwa Antrean jika ada.
getTag
public IHostMonitor.HostMetricType getTag ()
Kembalikan tag yang mengidentifikasi 'kelas' IHostMonitor
mana yang akan dijangkau.
Pengembalian | |
---|---|
IHostMonitor.HostMetricType |
berlari
public void run ()
mengakhiri
public void terminate ()
Metode yang akan dipanggil untuk menghentikan Host Monitor.