SandboxOptions

public final class SandboxOptions
extends Object

java.lang.Object
   ↳ com.android.tradefed.sandbox.SandboxOptions


Class that can receive and provide options to a ISandbox.

Summary

Fields

public static final String CHILD_GLOBAL_CONFIG

public static final String PARENT_PREPARER_CONFIG

public static final String SANDBOX_BUILD_ID

public static final String TF_LOCATION

public static final String USE_PROTO_REPORTER

public static final String WAIT_FOR_EVENTS_TIMEOUT

Public constructors

SandboxOptions()

Public methods

String getChildGlobalConfig()

Returns the configuration to be used for the child sandbox.

String getParentPreparerConfig()

Returns the configuration which preparer should run in the parent process of the sandbox.

String getSandboxBuildId()

Returns the build-id forced for the sandbox to be used during the run.

File getSandboxTfDirectory()

Returns the provided directories containing the Trade Federation version to use for sandboxing the run.

long getWaitForEventsTimeout()

Returns the time we should wait for events to be processed after the sandbox is done running.

boolean shouldUseProtoReporter()

Returns whether or not protobuf reporting should be used.

Fields

CHILD_GLOBAL_CONFIG

public static final String CHILD_GLOBAL_CONFIG

PARENT_PREPARER_CONFIG

public static final String PARENT_PREPARER_CONFIG

SANDBOX_BUILD_ID

public static final String SANDBOX_BUILD_ID

TF_LOCATION

public static final String TF_LOCATION

USE_PROTO_REPORTER

public static final String USE_PROTO_REPORTER

WAIT_FOR_EVENTS_TIMEOUT

public static final String WAIT_FOR_EVENTS_TIMEOUT

Public constructors

SandboxOptions

public SandboxOptions ()

Public methods

getChildGlobalConfig

public String getChildGlobalConfig ()

Returns the configuration to be used for the child sandbox. Or null if the parent one should be used.

Returns
String

getParentPreparerConfig

public String getParentPreparerConfig ()

Returns the configuration which preparer should run in the parent process of the sandbox.

Returns
String

getSandboxBuildId

public String getSandboxBuildId ()

Returns the build-id forced for the sandbox to be used during the run.

Returns
String

getSandboxTfDirectory

public File getSandboxTfDirectory ()

Returns the provided directories containing the Trade Federation version to use for sandboxing the run.

Returns
File

getWaitForEventsTimeout

public long getWaitForEventsTimeout ()

Returns the time we should wait for events to be processed after the sandbox is done running.

Returns
long

shouldUseProtoReporter

public boolean shouldUseProtoReporter ()

Returns whether or not protobuf reporting should be used.

Returns
boolean