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()

Get http connect timeout.

MultiMap<String, String> getDeviceGroup()

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

long getDeviceMonitorSnapshotInterval()

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

getDeviceTag()

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

long getInvocationHeartbeatInterval()

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

String getLabName()

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

getLabels()

取得主機的標籤。

getNextClusterIds()

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

int getReadTimeout()

Get http read timeout.

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