AbstractHostMonitor
public
abstract
class
AbstractHostMonitor
extends Thread
implements
IHostMonitor
| java.lang.Object | ||
| ↳ | java.lang.Thread | |
| ↳ | com.android.tradefed.util.hostmetric.AbstractHostMonitor | |
Ana makine sağlığı izleme için tipik sınıf. dispatch() işlevini aracının özellikleriyle birlikte uygular.
Özet
Alanlar | |
|---|---|
protected
Map<String, String> |
mHostData
|
protected
Queue<IHostMonitor.HostDataPoint> |
mHostEvents
|
Herkese açık oluşturucular | |
|---|---|
AbstractHostMonitor()
|
|
Herkese açık yöntemler | |
|---|---|
void
|
addHostEvent(IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
Gönderilecek özel bir etkinlik eklemek için çağrılacak yöntem. |
abstract
void
|
dispatch()
Mevcut ana makine verisi değerlerini toplar ve yayınlar. |
IHostMonitor.HostMetricType
|
getTag()
Ulaşılacak |
void
|
run()
|
void
|
terminate()
Ana makine monitörünü durdurmak için çağrılacak bir yöntem. |
Alanlar
mHostData
protected Map<String, String> mHostData
Herkese açık oluşturucular
AbstractHostMonitor
public AbstractHostMonitor ()
Herkese açık yöntemler
addHostEvent
public void addHostEvent (IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
Gönderilecek özel bir etkinlik eklemek için çağrılacak yöntem.
| Parametreler | |
|---|---|
tag |
IHostMonitor.HostMetricType |
event |
IHostMonitor.HostDataPoint |
gönderme
public abstract void dispatch ()
Mevcut ana makine verisi değerlerini toplar ve yayınlar. Varsa sıranın etkinliklerini yayınlamalıdır.
getTag
public IHostMonitor.HostMetricType getTag ()
Ulaşılacak IHostMonitor "sınıfını" tanımlayan etiketi döndürür.
| İadeler | |
|---|---|
IHostMonitor.HostMetricType |
|
run
public void run ()
feshetmek (legal context) : kapatmak (for more generic context)
public void terminate ()
Ana makine monitörünü durdurmak için çağrılacak bir yöntem.