FilePullerLogCollector

public class FilePullerLogCollector
extends FilePullerDeviceMetricCollector

java.lang.Object
   ↳ com.android.tradefed.device.metric.BaseDeviceMetricCollector
     ↳ com.android.tradefed.device.metric.FilePullerDeviceMetricCollector
       ↳ com.android.tradefed.device.metric.FilePullerLogCollector


Logger of the file reported by the device-side. This logger is allowed to live inside a module (AndroidTest.xml). TODO: When device-side reporting gets better, fix the LogDataType to be more accurate.

Summary

Public constructors

FilePullerLogCollector()

Public methods

void processMetricDirectory(String key, File metricDirectory, DeviceMetricData runData)

Implementation of the method should allow to log the directory, parse it for metrics to be put in DeviceMetricData.

final void processMetricFile(String key, File metricFile, DeviceMetricData runData)

Implementation of the method should allow to log the file, parse it for metrics to be put in DeviceMetricData.

Protected methods

void postProcessMetricFile(String key, File metricFile, DeviceMetricData runData)

Possible processing of a pulled file to extract some metrics.

Public constructors

FilePullerLogCollector

public FilePullerLogCollector ()

Public methods

processMetricDirectory

public void processMetricDirectory (String key, 
                File metricDirectory, 
                DeviceMetricData runData)

Implementation of the method should allow to log the directory, parse it for metrics to be put in DeviceMetricData.

Parameters
key String: the option key associated to the directory that was pulled.

metricDirectory File: the ERROR(/File) pulled from the device matching the option key.

runData DeviceMetricData: the DeviceMetricData where metrics can be stored.

processMetricFile

public final void processMetricFile (String key, 
                File metricFile, 
                DeviceMetricData runData)

Implementation of the method should allow to log the file, parse it for metrics to be put in DeviceMetricData.

Parameters
key String: the option key associated to the file that was pulled.

metricFile File: the ERROR(/File) pulled from the device matching the option key.

runData DeviceMetricData: the DeviceMetricData where metrics can be stored.

Protected methods

postProcessMetricFile

protected void postProcessMetricFile (String key, 
                File metricFile, 
                DeviceMetricData runData)

Possible processing of a pulled file to extract some metrics.

Parameters
key String: Key of the file pulled

metricFile File: The ERROR(/File) that was pulled.

runData DeviceMetricData: The metric storage were to put extracted metrics.