配置工具

public class ConfigUtil
extends Object

java.lang.Object
com.android.tradefed.util.statsd.ConfigUtil


用於建立、互動和推送 statsd 設定檔的實用程式類別。

TODO(b/118635164):與設備端設定公用程式合併。

概括

公共構造函數

ConfigUtil ()

公共方法

static long pushBinaryStatsConfig ( ITestDevice device, File configFile)

推送二進位 statsd 設定檔來收集指標

static long pushStatsConfig ( ITestDevice device, eventAtomIds, logSources) pushStatsConfig ( ITestDevice device, eventAtomIds, logSources) pushStatsConfig ( ITestDevice device, eventAtomIds, logSources)

推送基於事件的設定檔以從logSources收集eventAtomIds中提供的原子

static long pushStatsConfig ( ITestDevice device, eventAtomIds) pushStatsConfig ( ITestDevice device, eventAtomIds)

推送基於事件的設定檔以收集eventAtomIds中提供的原子。

static void removeConfig ( ITestDevice device, long configId)

透過 id configId刪除 statsd 設定檔。

公共構造函數

配置工具

public ConfigUtil ()

公共方法

推送二進位統計配置

public static long pushBinaryStatsConfig (ITestDevice device, 
                File configFile)

推送二進位 statsd 設定檔來收集指標

參數
device ITestDevice :二進位 statsd 設定將被推送到的測試設備

configFile File :statsd 設定文件

退貨
long新推送的設定檔ID

投擲
DeviceNotAvailableException

推送統計配置

public static long pushStatsConfig (ITestDevice device, 
                 eventAtomIds, 
                 logSources)

推送基於事件的設定檔以從logSources收集eventAtomIds中提供的原子

參數
device ITestDevice :將設定推送到哪裡

eventAtomIds :要收集的事件原子 ID 列表

logSources :可以收集原子的日誌來源列表

退貨
long新推送的設定檔ID

投擲
DeviceNotAvailableException

推送統計配置

public static long pushStatsConfig (ITestDevice device, 
                 eventAtomIds)

推送基於事件的設定檔以收集eventAtomIds中提供的原子。

參數
device ITestDevice :將設定推送到哪裡

eventAtomIds :要收集的事件原子 ID 列表

退貨
long新推送的設定檔ID

投擲
DeviceNotAvailableException

刪除配置

public static void removeConfig (ITestDevice device, 
                long configId)

透過 id configId刪除 statsd 設定檔。

參數
device ITestDevice :刪除配置的位置

configId long :要刪除的配置的 ID

投擲
DeviceNotAvailableException