ScheduledDeviceMetricCollector
public
abstract
class
ScheduledDeviceMetricCollector
extends BaseDeviceMetricCollector
java.lang.Object | ||
↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
↳ | com.android.tradefed.device.metric.ScheduledDeviceMetricCollector |
A IMetricCollector
that allows to run a collection task periodically at a set interval.
Summary
Public constructors | |
---|---|
ScheduledDeviceMetricCollector()
|
Public methods | |
---|---|
final
void
|
onTestRunEnd(DeviceMetricData runData,
Callback when a test run is ended. |
final
void
|
onTestRunStart(DeviceMetricData runData)
Callback when a test run is started. |
Public constructors
ScheduledDeviceMetricCollector
public ScheduledDeviceMetricCollector ()
Public methods
onTestRunEnd
public final void onTestRunEnd (DeviceMetricData runData,currentRunMetrics)
Callback when a test run is ended. This should be the time for clean up.
Parameters | |
---|---|
runData |
DeviceMetricData : the DeviceMetricData holding the data for the run. Will be the same
object as during onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData) . |
currentRunMetrics |
: the current map of metrics passed to ERROR(/#testRunEnded(long,Map)) .
|
onTestRunStart
public final void onTestRunStart (DeviceMetricData runData)
Callback when a test run is started.
Parameters | |
---|---|
runData |
DeviceMetricData : the DeviceMetricData holding the data for the run.
|