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

public  getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

デバイス リソースの指標を収集します。この関数は getDeviceMetricizeTimeoutMs() ms 以内に返す必要があります。返さないと、結果は LabResourceDeviceMonitor によって破棄されます。また、負荷の高いオペレーションの前に Thread.currentThread().isInterrupted() をチェックして、すぐに戻るようにしてください。

パラメータ
descriptor DeviceDescriptor: 指標化デバイスに関する DeviceDescriptor

deviceManager IDeviceManager: IDeviceManager インスタンス。

戻り値
デバイス ResourceERROR(/Collection)

getHostMetricizeTimeoutMs

public long getHostMetricizeTimeoutMs ()

ホストの指標化タイムアウトをミリ秒単位で取得します。

戻り値
long

getHostResourceMetrics

public  getHostResourceMetrics ()

ホストリソースの指標を収集します。この関数は getHostMetricizeTimeoutMs() ms 以内に返す必要があります。返さないと、結果は LabResourceDeviceMonitor によって破棄されます。また、負荷の高いオペレーションの前に Thread.currentThread().isInterrupted() をチェックして、すぐに戻るようにしてください。

戻り値
ホスト ResourceERROR(/Collection)