ClusterOptions

public class ClusterOptions
extends Object implements IClusterOptions

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


摘要

字段

public static final String TYPE_NAME

唯一的配置对象类型名称。

public String mClusterId

public mNextClusterIds

public String mServiceUrl

公共构造函数

ClusterOptions()

公共方法

boolean checkCommandState()

是否应在心跳期间检查命令状态(在 TF 集群上)。

boolean checkPermitsOnLease()

租赁前,请先查看一些可用的许可。

String getClusterId()

获取此 TF 实例的集群 ID。

int getConnectTimeout()

获取 http 连接超时。

MultiMap<String, String> getDeviceGroup()

获取设备组与设备的映射。

long getDeviceMonitorSnapshotInterval()

获取每张设备快照之间的时间间隔(以毫秒为单位)。

getDeviceTag()

获取设备序列号与标签的映射。

long getInvocationHeartbeatInterval()

获取调用心跳之间的时间间隔(以毫秒为单位)。

String getLabName()

获取主机所属实验的名称。

getLabels()

获取主机的标签。

getNextClusterIds()

获取此 TF 实例的辅助集群 ID。

int getReadTimeout()

获取 http 读取超时。

String getRunTargetFormat()

获取用于标记运行目标的格式。

File getSchedulerServiceAccountKeyfile()

获取 tradefed 测试调度程序服务账号密钥文件。

String getSchedulerServiceUrl()

获取 tradefed 测试调度程序服务网址。

String getServiceUrl()

获取 tradefed 集群 REST API 的基准网址。

boolean isDeviceMonitorDisabled()

返回是否停用了集群设备报告。

long maxDiskUsagePercentage()

停止租用其他新任务之前的磁盘用量百分比上限。

boolean shouldCollectEarlyTestSummary()

返回调度程序是否应收集早期测试摘要。

Boolean shouldUploadInvocationStatus()

返回 TF 是否应上传调用状态。

字段

TYPE_NAME

public static final String TYPE_NAME

唯一的配置对象类型名称。用于从 GlobalConfiguration 检索单例实例。

mClusterId

public String mClusterId

mNextClusterIds

public  mNextClusterIds

mServiceUrl

public String mServiceUrl

公共构造函数

ClusterOptions

public ClusterOptions ()

公共方法

checkCommandState

public boolean checkCommandState ()

是否应在心跳期间检查命令状态(在 TF 集群上)。

返回
boolean

checkPermitsOnLease

public boolean checkPermitsOnLease ()

在租赁前,请查看一些可用的许可。

返回
boolean

getClusterId

public String getClusterId ()

获取此 TF 实例的集群 ID。

返回
String

getConnectTimeout

public int getConnectTimeout ()

获取 http 连接超时。

返回
int

getDeviceGroup

public MultiMap<String, String> getDeviceGroup ()

获取设备组与设备的映射。

返回
MultiMap<String, String>

getDeviceMonitorSnapshotInterval

public long getDeviceMonitorSnapshotInterval ()

获取每张设备快照之间的时间间隔(以毫秒为单位)。

返回
long

getDeviceTag

public  getDeviceTag ()

获取设备序列号与标签的映射。

返回

getInvocationHeartbeatInterval

public long getInvocationHeartbeatInterval ()

获取调用心跳之间的时间间隔(以毫秒为单位)。

返回
long

getLabName

public String getLabName ()

获取主机所属实验的名称。

返回
String

getLabels

public  getLabels ()

获取主机的标签。

返回

getNextClusterIds

public  getNextClusterIds ()

获取此 TF 实例的辅助集群 ID。

返回

getReadTimeout

public int getReadTimeout ()

获取 http 读取超时。

返回
int

getRunTargetFormat

public String getRunTargetFormat ()

获取用于标记运行目标的格式。

返回
String

getSchedulerServiceAccountKeyfile

public File getSchedulerServiceAccountKeyfile ()

获取 tradefed 测试调度程序服务账号密钥文件。

返回
File

getSchedulerServiceUrl

public String getSchedulerServiceUrl ()

获取 tradefed 测试调度程序服务网址。

返回
String

getServiceUrl

public String getServiceUrl ()

获取 tradefed 集群 REST API 的基准网址。

返回
String

isDeviceMonitorDisabled

public boolean isDeviceMonitorDisabled ()

返回是否停用了集群设备报告。

返回
boolean

maxDiskUsagePercentage

public long maxDiskUsagePercentage ()

停止租用其他新任务之前的磁盘用量百分比上限。

返回
long

shouldCollectEarlyTestSummary

public boolean shouldCollectEarlyTestSummary ()

返回调度程序是否应收集早期测试摘要。

返回
boolean

shouldUploadInvocationStatus

public Boolean shouldUploadInvocationStatus ()

返回 TF 是否应上传调用状态。

返回
Boolean