AbstractHostMonitor

public abstract class AbstractHostMonitor
extends Thread implements IHostMonitor

java.lang.Object
   ↳ java.lang.Thread
     ↳ com.android.tradefed.util.hostmetric.AbstractHostMonitor


מחלקה אופיינית לניטור תקינות המארח. הטמעה של dispatch() עם פרטים ספציפיים של הסוכן.

סיכום

שדות

protected Map<String, String> mHostData

protected Queue<IHostMonitor.HostDataPoint> mHostEvents

‫constructors ציבוריים

AbstractHostMonitor()

‫methods ציבוריים

void addHostEvent(IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)

שיטה שתופעל כדי להוסיף אירוע מיוחד לשליחה.

abstract void dispatch()

איסוף ופליטה של ערכי הנתונים הנוכחיים של המארח.

IHostMonitor.HostMetricType getTag()

הפונקציה מחזירה את התג שמזהה את ה 'סוג' של IHostMonitor שאליו רוצים להגיע.

void run()
void terminate()

‫Method שיופעל כדי להפסיק את Host Monitor.

שדות

mHostData

protected Map<String, String> mHostData

mHostEvents

protected Queue<IHostMonitor.HostDataPoint> mHostEvents

‫constructors ציבוריים

AbstractHostMonitor

public AbstractHostMonitor ()

‫methods ציבוריים

addHostEvent

public void addHostEvent (IHostMonitor.HostMetricType tag, 
                IHostMonitor.HostDataPoint event)

שיטה שתופעל כדי להוסיף אירוע מיוחד לשליחה.

פרמטרים
tag IHostMonitor.HostMetricType

event IHostMonitor.HostDataPoint

dispatch

public abstract void dispatch ()

איסוף ופליטה של ערכי הנתונים הנוכחיים של המארח. הפונקציה צריכה לשלוח את האירועים של התור, אם יש כאלה.

getTag

public IHostMonitor.HostMetricType getTag ()

הפונקציה מחזירה את התג שמזהה את ה 'סוג' של IHostMonitor שאליו רוצים להגיע.

החזרות
IHostMonitor.HostMetricType

ראן

public void run ()

סגירת חשבון

public void terminate ()

‫Method שיופעל כדי להפסיק את Host Monitor.