IHostMonitor
public
interface
IHostMonitor
com.android.tradefed.util.hostmetric.IHostMonitor |
用於調度主機資料的介面
摘要
巢狀類別 | |
---|---|
class |
IHostMonitor.HostDataPoint
用於回報資料的泛型類別。 |
公用方法 | |
---|---|
abstract
void
|
addHostEvent(IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
系統會呼叫這個方法,藉此新增要傳送的特殊事件。 |
abstract
void
|
start()
在設定完所有監控器的 @Option 欄位後,系統會呼叫這個方法。 |
abstract
void
|
terminate()
系統會呼叫此方法來停止主機監控器。 |
公用方法
addHostEvent
public abstract void addHostEvent (IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
系統會呼叫這個方法,藉此新增要傳送的特殊事件。
參數 | |
---|---|
tag |
IHostMonitor.HostMetricType |
event |
IHostMonitor.HostDataPoint |
start
public abstract void start ()
在設定所有監控器的 @Option 欄位後,系統會呼叫這個方法。
終止
public abstract void terminate ()
系統會呼叫此方法來停止主機監控器。