IResourceMetricCollector
public interface IResourceMetricCollector
com.android.tradefed.monitoring.collector.IResourceMetricCollector |
ユーザーがカスタマイズされたリソースコレクターを実装するためのインターフェース。
概要
パブリックメソッド | |
---|---|
default long | getDeviceMetricizeTimeoutMs () デバイスのメトリック化タイムアウトをミリ秒単位で取得します。 |
default | getDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager) デバイスリソースメトリックを収集します。 |
default long | getHostMetricizeTimeoutMs () ホストのメトリック化タイムアウトをミリ秒単位で取得します。 |
default | getHostResourceMetrics () ホストリソースのメトリックを収集します。 |
パブリックメソッド
getDeviceMetricizeTimeoutMs
public long getDeviceMetricizeTimeoutMs ()
デバイスのメトリック化タイムアウトをミリ秒単位で取得します。
戻り値 | |
---|---|
long |
getDeviceResourceMetrics
publicgetDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)
デバイスリソースメトリックを収集します。関数はで返す必要がありgetDeviceMetricizeTimeoutMs()
そうでなければ結果によりドロップされ、MS LabResourceDeviceMonitor
。また、コストのかかる操作の前にThread.currentThread()。isInterrupted()を確認し、すぐに戻ってください。
パラメーター | |
---|---|
descriptor | DeviceDescriptor : DeviceDescriptor metricizingデバイスに関する。 |
deviceManager | IDeviceManager : IDeviceManager インスタンス。 |
戻り値 | |
---|---|
ERROR(/Collection) デバイスのResource 。 |
getHostMetricizeTimeoutMs
public long getHostMetricizeTimeoutMs ()
ホストのメトリック化タイムアウトをミリ秒単位で取得します。
戻り値 | |
---|---|
long |
getHostResourceMetrics
publicgetHostResourceMetrics ()
ホストリソースのメトリックを収集します。関数はで返す必要がありgetHostMetricizeTimeoutMs()
そうでなければ結果によりドロップされ、MS LabResourceDeviceMonitor
。また、コストのかかる操作の前にThread.currentThread()。isInterrupted()を確認し、すぐに戻ってください。
戻り値 | |
---|---|
ERROR(/Collection) ホストのResource 。 |