IClusterOptions

public interface IClusterOptions

com.android.tradefed.cluster.IClusterOptions


用於取得叢集相關選項的介面。

摘要

公用方法

abstract boolean checkCommandState()

是否應在心跳期間檢查指令狀態 (在 TF 叢集上)。

abstract boolean checkPermitsOnLease()

租借前請先查看可用的許可證。

abstract String getClusterId()

取得這個 TF 執行個體的叢集 ID。

abstract int getConnectTimeout()

Get http connect timeout.

abstract MultiMap<String, String> getDeviceGroup()

取得裝置群組到裝置的對應。

abstract long getDeviceMonitorSnapshotInterval()

以毫秒為單位,取得每個裝置快照之間的時間間隔。

abstract Map<String, String> getDeviceTag()

取得裝置序號到標記的對應。

abstract long getInvocationHeartbeatInterval()

以毫秒為單位取得呼叫心跳間的時間間隔。

abstract String getLabName()

取得主機所屬實驗室的名稱。

abstract List<String> getLabels()

取得主機的標籤。

abstract List<String> getNextClusterIds()

取得這個 TF 執行個體的次要叢集 ID。

abstract int getReadTimeout()

Get http read timeout.

abstract String getRunTargetFormat()

取得用於標記執行目標的格式。

abstract File getSchedulerServiceAccountKeyfile()

取得 tradefed 測試排程器服務帳戶金鑰檔案。

abstract String getSchedulerServiceUrl()

取得 tradefed 測試排程服務網址。

abstract String getServiceUrl()

取得 tradefed 叢集 REST API 的基本網址。

abstract boolean isDeviceMonitorDisabled()

傳回叢集裝置報告是否已停用。

abstract long maxDiskUsagePercentage()

我們停止租用其他新工作前的最大磁碟用量百分比。

abstract boolean shouldCollectEarlyTestSummary()

Returns whether scheduler should collect early test summary.

abstract Boolean shouldUploadInvocationStatus()

傳回 TF 是否應上傳叫用狀態。

公用方法

checkCommandState

public abstract boolean checkCommandState ()

是否要在心跳期間檢查指令狀態 (在 TF 叢集上)。

傳回
boolean

checkPermitsOnLease

public abstract boolean checkPermitsOnLease ()

租借前請先查看可用的許可證。

傳回
boolean

getClusterId

public abstract String getClusterId ()

取得這個 TF 執行個體的叢集 ID。

傳回
String

getConnectTimeout

public abstract int getConnectTimeout ()

取得 HTTP 連線逾時時間。

傳回
int

getDeviceGroup

public abstract MultiMap<String, String> getDeviceGroup ()

取得裝置群組到裝置的對應關係。

傳回
MultiMap<String, String>

getDeviceMonitorSnapshotInterval

public abstract long getDeviceMonitorSnapshotInterval ()

以毫秒為單位,取得每個裝置快照之間的時間間隔。

傳回
long

getDeviceTag

public abstract Map<String, String> getDeviceTag ()

取得裝置序號到標籤的對應關係。

傳回
Map<String, String>

getInvocationHeartbeatInterval

public abstract long getInvocationHeartbeatInterval ()

以毫秒為單位,取得呼叫心跳間隔時間。

傳回
long

getLabName

public abstract String getLabName ()

取得主機所屬實驗室的名稱。

傳回
String

getLabels

public abstract List<String> getLabels ()

取得主機的標籤。

傳回
List<String>

getNextClusterIds

public abstract List<String> getNextClusterIds ()

取得這個 TF 執行個體的次要叢集 ID。

傳回
List<String>

getReadTimeout

public abstract int getReadTimeout ()

取得 HTTP 讀取逾時。

傳回
int

getRunTargetFormat

public abstract String getRunTargetFormat ()

取得標記跑步目標的格式。

傳回
String

getSchedulerServiceAccountKeyfile

public abstract File getSchedulerServiceAccountKeyfile ()

取得 tradefed 測試排程器服務帳戶金鑰檔案。

傳回
File

getSchedulerServiceUrl

public abstract String getSchedulerServiceUrl ()

取得 tradefed 測試排程服務網址。

傳回
String

getServiceUrl

public abstract String getServiceUrl ()

取得 tradefed 叢集 REST API 的基本網址。

傳回
String

isDeviceMonitorDisabled

public abstract boolean isDeviceMonitorDisabled ()

傳回叢集裝置報告是否已停用。

傳回
boolean

maxDiskUsagePercentage

public abstract long maxDiskUsagePercentage ()

我們停止租用其他新工作前的磁碟使用率上限。

傳回
long

shouldCollectEarlyTestSummary

public abstract boolean shouldCollectEarlyTestSummary ()

傳回排程器是否應收集早期測試摘要。

傳回
boolean

shouldUploadInvocationStatus

public abstract Boolean shouldUploadInvocationStatus ()

傳回 TF 是否應上傳叫用狀態。

傳回
Boolean