AbstractHostMonitor
public
abstract
class
AbstractHostMonitor
extends Thread
implements
IHostMonitor
| java.lang.Object | ||
| ↳ | java.lang.Thread | |
| ↳ | com.android.tradefed.util.hostmetric.AbstractHostMonitor | |
Class umum untuk Pemantauan Kondisi Host. Mengimplementasikan dispatch() dengan spesifikasi agen.
Ringkasan
Kolom | |
|---|---|
protected
Map<String, String> |
mHostData
|
protected
Queue<IHostMonitor.HostDataPoint> |
mHostEvents
|
Konstruktor publik | |
|---|---|
AbstractHostMonitor()
|
|
Metode publik | |
|---|---|
void
|
addHostEvent(IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
Metode yang akan dipanggil untuk menambahkan acara khusus yang akan dikirim. |
abstract
void
|
dispatch()
Mengumpulkan dan Memancarkan nilai data host saat ini. |
IHostMonitor.HostMetricType
|
getTag()
Menampilkan tag yang mengidentifikasi 'class' |
void
|
run()
|
void
|
terminate()
Metode yang akan dipanggil untuk menghentikan Monitor Host. |
Kolom
mHostData
protected Map<String, String> mHostData
Konstruktor publik
AbstractHostMonitor
public AbstractHostMonitor ()
Metode publik
addHostEvent
public void addHostEvent (IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
Metode yang akan dipanggil untuk menambahkan acara khusus yang akan dikirim.
| Parameter | |
|---|---|
tag |
IHostMonitor.HostMetricType |
event |
IHostMonitor.HostDataPoint |
pengiriman
public abstract void dispatch ()
Mengumpulkan dan Memancarkan nilai data host saat ini. Harus memancarkan Peristiwa Antrean jika ada.
getTag
public IHostMonitor.HostMetricType getTag ()
Menampilkan tag yang mengidentifikasi 'class' IHostMonitor yang akan dijangkau.
| Hasil | |
|---|---|
IHostMonitor.HostMetricType |
|
lari
public void run ()
hentikan, menghentikan [use as per context]
public void terminate ()
Metode yang akan dipanggil untuk menghentikan Monitor Host.