AbstrakHostMonitor
public abstract class AbstractHostMonitor
extends Object
implements IHostMonitor
java.lang.Objek | |
↳ | com.android.tradefed.util.hostmetric.AbstractHostMonitor |
Kelas umum untuk Pemantauan Kesehatan Tuan Rumah. mengimplementasikan pengiriman() dengan spesifikasi agen.
Ringkasan
Bidang | |
---|---|
protected | mHostData |
protected | mHostEvents
|
Konstruktor publik | |
---|---|
AbstractHostMonitor () |
Metode publik | |
---|---|
void | addHostEvent ( IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event) Sebuah metode yang akan dipanggil untuk menambahkan event khusus yang akan dikirim. |
abstract void | dispatch () Mengumpulkan dan Memancarkan nilai data host saat ini. |
IHostMonitor.HostMetricType | getTag () Kembalikan tag yang mengidentifikasi 'kelas' |
void | run () |
void | terminate () Sebuah metode yang akan dipanggil untuk menghentikan Host Monitor. |
Bidang
mHostData
protectedmHostData
mHostEvents
protectedmHostEvents
Konstruktor publik
AbstrakHostMonitor
public AbstractHostMonitor ()
Metode publik
tambahkanHostEvent
public void addHostEvent (IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
Sebuah metode yang akan dipanggil untuk menambahkan event khusus yang akan dikirim.
Parameter | |
---|---|
tag | IHostMonitor.HostMetricType |
event | IHostMonitor.HostDataPoint |
menugaskan
public abstract void dispatch ()
Mengumpulkan dan Memancarkan nilai data host saat ini. Harus mengeluarkan Acara Antrian jika ada.
dapatkanTag
public IHostMonitor.HostMetricType getTag ()
Kembalikan tag yang mengidentifikasi 'kelas' IHostMonitor
mana yang ingin dijangkau.
Kembali | |
---|---|
IHostMonitor.HostMetricType |
berlari
public void run ()
mengakhiri
public void terminate ()
Sebuah metode yang akan dipanggil untuk menghentikan Host Monitor.