Google is committed to advancing racial equity for Black communities. See how.

ClusterLogSaver

public class ClusterLogSaver
extends Object implements ILogSaver

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterLogSaver


A ILogSaver class to upload test outputs to TFC.

Summary

Nested classes

enum ClusterLogSaver.FilePickingStrategy

File picking strategies. 

Fields

public static final String FILE_NAMES_FILE_NAME

A name of a text file containing all test output file names.

public static final String TOOL_LOG_PATH

A name of a subdirectory containing all files generated by host process.

Public constructors

ClusterLogSaver()

Public methods

LogFile getLogReportDir()
void invocationEnded(long elapsedTime)
void invocationStarted(IInvocationContext context)
LogFile saveLogData(String dataName, LogDataType dataType, InputStream dataStream)
LogFile saveLogDataRaw(String dataName, LogDataType dataType, InputStream dataStream)

Fields

FILE_NAMES_FILE_NAME

public static final String FILE_NAMES_FILE_NAME

A name of a text file containing all test output file names.

TOOL_LOG_PATH

public static final String TOOL_LOG_PATH

A name of a subdirectory containing all files generated by host process.

Public constructors

ClusterLogSaver

public ClusterLogSaver ()

Public methods

getLogReportDir

public LogFile getLogReportDir ()

Returns
LogFile

invocationEnded

public void invocationEnded (long elapsedTime)

Parameters
elapsedTime long

invocationStarted

public void invocationStarted (IInvocationContext context)

Parameters
context IInvocationContext

saveLogData

public LogFile saveLogData (String dataName, 
                LogDataType dataType, 
                InputStream dataStream)

Parameters
dataName String

dataType LogDataType

dataStream InputStream

Returns
LogFile

saveLogDataRaw

public LogFile saveLogDataRaw (String dataName, 
                LogDataType dataType, 
                InputStream dataStream)

Parameters
dataName String

dataType LogDataType

dataStream InputStream

Returns
LogFile