ClusterOptions
public
class
ClusterOptions
extends Object
implements
IClusterOptions
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterOptions |
Summary
Fields | |
---|---|
public
static
final
String |
TYPE_NAME
The unique configuration object type name. |
public
String |
mClusterId
|
public
|
mNextClusterIds
|
public
String |
mServiceUrl
|
Public constructors | |
---|---|
ClusterOptions()
|
Public methods | |
---|---|
boolean
|
checkCommandState()
Whether the command state (on the TF cluster) should be checked during heartbeat. |
boolean
|
checkPermitsOnLease()
Check some available permits before leasing. |
String
|
getClusterId()
Get the cluster id for this TF instance. |
int
|
getConnectTimeout()
Get http connect timeout. |
MultiMap<String, String>
|
getDeviceGroup()
Get the device group to device mapping. |
long
|
getDeviceMonitorSnapshotInterval()
Get the time interval between each device snapshot in ms. |
|
getDeviceTag()
Get the device serial to tag mapping. |
long
|
getInvocationHeartbeatInterval()
Get the time interval between invocation heartbeats in ms. |
String
|
getLabName()
Get the name of the lab the host belong to. |
|
getLabels()
Get labels for the host. |
|
getNextClusterIds()
Get the secondary cluster ids for this TF instance. |
int
|
getReadTimeout()
Get http read timeout. |
String
|
getRunTargetFormat()
Get the format for labelling run targets. |
File
|
getSchedulerServiceAccountKeyfile()
Get the tradefed test scheduler service account key file. |
String
|
getSchedulerServiceUrl()
Get the tradefed test scheduler service URL. |
String
|
getServiceUrl()
Get the base url of the tradefed cluster REST API. |
boolean
|
isDeviceMonitorDisabled()
Returns whether Cluster device reporting is disabled. |
long
|
maxDiskUsagePercentage()
Maximal disk usage percentage before we stop leasing additional new tasks. |
boolean
|
shouldCollectEarlyTestSummary()
Returns whether scheduler should collect early test summary. |
Boolean
|
shouldUploadInvocationStatus()
Returns whether TF should upload invocation status. |
Fields
TYPE_NAME
public static final String TYPE_NAME
The unique configuration object type name. Used to retrieve the singleton instance from the
GlobalConfiguration
.
mClusterId
public String mClusterId
mNextClusterIds
publicmNextClusterIds
mServiceUrl
public String mServiceUrl
Public constructors
ClusterOptions
public ClusterOptions ()
Public methods
checkCommandState
public boolean checkCommandState ()
Whether the command state (on the TF cluster) should be checked during heartbeat.
Returns | |
---|---|
boolean |
checkPermitsOnLease
public boolean checkPermitsOnLease ()
Check some available permits before leasing.
Returns | |
---|---|
boolean |
getClusterId
public String getClusterId ()
Get the cluster id for this TF instance.
Returns | |
---|---|
String |
getConnectTimeout
public int getConnectTimeout ()
Get http connect timeout.
Returns | |
---|---|
int |
getDeviceGroup
public MultiMap<String, String> getDeviceGroup ()
Get the device group to device mapping.
Returns | |
---|---|
MultiMap<String, String> |
getDeviceMonitorSnapshotInterval
public long getDeviceMonitorSnapshotInterval ()
Get the time interval between each device snapshot in ms.
Returns | |
---|---|
long |
getDeviceTag
publicgetDeviceTag ()
Get the device serial to tag mapping.
Returns | |
---|---|
|
getInvocationHeartbeatInterval
public long getInvocationHeartbeatInterval ()
Get the time interval between invocation heartbeats in ms.
Returns | |
---|---|
long |
getLabName
public String getLabName ()
Get the name of the lab the host belong to.
Returns | |
---|---|
String |
getLabels
publicgetLabels ()
Get labels for the host.
Returns | |
---|---|
|
getNextClusterIds
publicgetNextClusterIds ()
Get the secondary cluster ids for this TF instance.
Returns | |
---|---|
|
getReadTimeout
public int getReadTimeout ()
Get http read timeout.
Returns | |
---|---|
int |
getRunTargetFormat
public String getRunTargetFormat ()
Get the format for labelling run targets.
Returns | |
---|---|
String |
getSchedulerServiceAccountKeyfile
public File getSchedulerServiceAccountKeyfile ()
Get the tradefed test scheduler service account key file.
Returns | |
---|---|
File |
getSchedulerServiceUrl
public String getSchedulerServiceUrl ()
Get the tradefed test scheduler service URL.
Returns | |
---|---|
String |
getServiceUrl
public String getServiceUrl ()
Get the base url of the tradefed cluster REST API.
Returns | |
---|---|
String |
isDeviceMonitorDisabled
public boolean isDeviceMonitorDisabled ()
Returns whether Cluster device reporting is disabled.
Returns | |
---|---|
boolean |
maxDiskUsagePercentage
public long maxDiskUsagePercentage ()
Maximal disk usage percentage before we stop leasing additional new tasks.
Returns | |
---|---|
long |
shouldCollectEarlyTestSummary
public boolean shouldCollectEarlyTestSummary ()
Returns whether scheduler should collect early test summary.
Returns | |
---|---|
boolean |
shouldUploadInvocationStatus
public Boolean shouldUploadInvocationStatus ()
Returns whether TF should upload invocation status.
Returns | |
---|---|
Boolean |