AbstractHostMonitor
public
abstract
class
AbstractHostMonitor
extends Object
implements
IHostMonitor
java.lang.Object | |
↳ | com.android.tradefed.util.hostmetric.AbstractHostMonitor |
Class standar untuk Pemantauan Kesehatan Host. menerapkan dispatch() dengan detail agen.
Ringkasan
Kolom | |
---|---|
protected
|
mHostData
|
protected
|
mHostEvents
|
Konstruktor publik | |
---|---|
AbstractHostMonitor()
|
Metode publik | |
---|---|
void
|
addHostEvent(IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
Metode yang akan dipanggil untuk menambahkan peristiwa khusus yang akan dikirim. |
abstract
void
|
dispatch()
Mengumpulkan dan Memunculkan nilai data host saat ini. |
IHostMonitor.HostMetricType
|
getTag()
Menampilkan tag yang mengidentifikasi 'class' |
void
|
run()
|
void
|
terminate()
Metode yang akan dipanggil untuk menghentikan Host Monitor. |
Kolom
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 peristiwa khusus yang akan dikirim.
Parameter | |
---|---|
tag |
IHostMonitor.HostMetricType |
event |
IHostMonitor.HostDataPoint |
pengiriman
public abstract void dispatch ()
Mengumpulkan dan Memunculkan nilai data host saat ini. Harus memunculkan 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 ()
terminate
public void terminate ()
Metode yang akan dipanggil untuk menghentikan Host Monitor.