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 是否應上傳叫用狀態。 |
欄位
mClusterId
public String mClusterId
mNextClusterIds
publicmNextClusterIds
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
publicgetDeviceTag ()
取得裝置序號與標記的對應關係。
傳回 | |
---|---|
|
getInvocationHeartbeatInterval
public long getInvocationHeartbeatInterval ()
以毫秒為單位,取得兩次叫用心跳間隔的時間間隔。
傳回 | |
---|---|
long |
getLabName
public String getLabName ()
取得主機所屬實驗室的名稱。
傳回 | |
---|---|
String |
getLabels
publicgetLabels ()
取得主機的標籤。
傳回 | |
---|---|
|
getNextClusterIds
publicgetNextClusterIds ()
取得這個 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 |