CommonLogRemoteFileUtil

public class CommonLogRemoteFileUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.cloud.CommonLogRemoteFileUtil


This utility allows to avoid code duplication across the different remote device representation for the remote log fetching logic of common files.

Summary

Nested classes

class CommonLogRemoteFileUtil.KnownLogFileEntry

A representation of a known log entry for remote devices. 

Fields

public static final String EMULATOR_REMOTE_LOG_DIR

The directory where to find debug logs for an emulator instance.

public static final MultiMap<TestDeviceOptions.InstanceTypeCommonLogRemoteFileUtil.KnownLogFileEntry> KNOWN_FILES_TO_FETCH

public static final String NESTED_REMOTE_LOG_DIR

The directory where to find debug logs for a nested remote instance.

Public constructors

CommonLogRemoteFileUtil()

Public methods

static void fetchCommonFiles(ITestLogger testLogger, GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil)

Fetch and log the commonly known files from remote instances.

Fields

EMULATOR_REMOTE_LOG_DIR

public static final String EMULATOR_REMOTE_LOG_DIR

The directory where to find debug logs for an emulator instance.

KNOWN_FILES_TO_FETCH

public static final MultiMap<TestDeviceOptions.InstanceTypeCommonLogRemoteFileUtil.KnownLogFileEntry> KNOWN_FILES_TO_FETCH

NESTED_REMOTE_LOG_DIR

public static final String NESTED_REMOTE_LOG_DIR

The directory where to find debug logs for a nested remote instance.

Public constructors

CommonLogRemoteFileUtil

public CommonLogRemoteFileUtil ()

Public methods

fetchCommonFiles

public static void fetchCommonFiles (ITestLogger testLogger, 
                GceAvdInfo gceAvd, 
                TestDeviceOptions options, 
                IRunUtil runUtil)

Fetch and log the commonly known files from remote instances.

Parameters
testLogger ITestLogger: The ITestLogger where to log the files.

gceAvd GceAvdInfo: The descriptor of the remote instance.

options TestDeviceOptions: The TestDeviceOptions describing the device options

runUtil IRunUtil: A IRunUtil to execute commands.