ClusterOptions

public class ClusterOptions
extends Object implements IClusterOptions

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


摘要

常量

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 中检索单例实例。

常量值: "cluster_options"

字段

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