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 |
ENABLE_DEBUG_THREAD
|
public
static
final
String |
EXTRA_BRANCH_TARGET
|
public
static
final
String |
EXTRA_BUILD_ID_TARGET
|
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. |
|
getEnvVariables()
The map of environment variable to pass to the java process of the sandbox. |
String
|
getExtraBranchTarget()
Returns the branch from which to download the sandbox extras. |
String
|
getExtraBuildIdTarget()
Returns the build-id from which to download the sandbox extras. |
|
getJavaOptions()
The list of options to pass the java process of the 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
|
shouldEnableDebugThread()
Enable a debug thread. |
boolean
|
shouldUseProtoReporter()
Returns whether or not protobuf reporting should be used. |
Fields
CHILD_GLOBAL_CONFIG
public static final String CHILD_GLOBAL_CONFIG
ENABLE_DEBUG_THREAD
public static final String ENABLE_DEBUG_THREAD
EXTRA_BRANCH_TARGET
public static final String EXTRA_BRANCH_TARGET
EXTRA_BUILD_ID_TARGET
public static final String EXTRA_BUILD_ID_TARGET
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 |
getEnvVariables
publicgetEnvVariables ()
The map of environment variable to pass to the java process of the sandbox.
Returns | |
---|---|
|
getExtraBranchTarget
public String getExtraBranchTarget ()
Returns the branch from which to download the sandbox extras. If null, extras will be downloaded from the branch under tests.
Returns | |
---|---|
String |
getExtraBuildIdTarget
public String getExtraBuildIdTarget ()
Returns the build-id from which to download the sandbox extras. If null, extras will be downloaded from the build-id under tests.
Returns | |
---|---|
String |
getJavaOptions
publicgetJavaOptions ()
The list of options to pass the java process of the sandbox.
Returns | |
---|---|
|
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 |
shouldEnableDebugThread
public boolean shouldEnableDebugThread ()
Enable a debug thread.
Returns | |
---|---|
boolean |
shouldUseProtoReporter
public boolean shouldUseProtoReporter ()
Returns whether or not protobuf reporting should be used.
Returns | |
---|---|
boolean |