集群選項

public class ClusterOptions
extends Object implements IClusterOptions

對象
com.android.tradefed.cluster.ClusterOptions


概括

字段

public static final String TYPE_NAME

唯一的配置對像類型名稱。

public String mClusterId

public mNextClusterIds

public String mServiceUrl

公共構造函數

ClusterOptions ()

公共方法

boolean checkCommandState ()

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

boolean checkFlashingPermitsOnLease ()

檢查它是否應該在租賃前檢查可用的閃爍許可證。

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 測試調度程序服務 URL。

String getServiceUrl ()

獲取 tradefed 集群 REST API 的基本 URL。

boolean isDeviceMonitorDisabled ()

返回是否禁用集群設備報告。

long maxDiskUsagePercentage ()

在我們停止租用額外的新任務之前的最大磁盤使用百分比。

boolean shouldCollectEarlyTestSummary ()

返回調度程序是否應收集早期測試摘要。

Boolean shouldUploadInvocationStatus ()

返回 TF 是否應上傳調用狀態。

字段

TYPE_NAME

public static final String TYPE_NAME

唯一的配置對像類型名稱。用於檢索從單個實例GlobalConfiguration

集群ID

public String mClusterId

mNextClusterIds

public  mNextClusterIds

移動服務網址

public String mServiceUrl

公共構造函數

集群選項

public ClusterOptions ()

公共方法

檢查命令狀態

public boolean checkCommandState ()

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

退貨
boolean

checkFlashingPermitsOnLease

public boolean checkFlashingPermitsOnLease ()

檢查它是否應該在租賃前檢查可用的閃爍許可證。

退貨
boolean

checkPermitsOnLease

public boolean checkPermitsOnLease ()

在租賃前檢查一些可用的許可證。

退貨
boolean

獲取集群ID

public String getClusterId ()

獲取此 TF 實例的集群 ID。

退貨
String

獲取連接超時

public int getConnectTimeout ()

獲取 http 連接超時。

退貨
int

獲取設備組

public MultiMap<String, String> getDeviceGroup ()

獲取設備組到設備的映射。

退貨
MultiMap<String, String>

getDeviceMonitorSnapshotInterval

public long getDeviceMonitorSnapshotInterval ()

以毫秒為單位獲取每個設備快照之間的時間間隔。

退貨
long

獲取設備標籤

public  getDeviceTag ()

獲取設備序列到標籤映射。

退貨

獲取調用心跳間隔

public long getInvocationHeartbeatInterval ()

以毫秒為單位獲取調用心跳之間的時間間隔。

退貨
long

獲取實驗室名稱

public String getLabName ()

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

退貨
String

獲取標籤

public  getLabels ()

獲取主機的標籤。

退貨

獲取下一個集群 ID

public  getNextClusterIds ()

獲取此 TF 實例的輔助集群 ID。

退貨

獲取讀取超時

public int getReadTimeout ()

獲取 http 讀取超時。

退貨
int

獲取運行目標格式

public String getRunTargetFormat ()

獲取標記運行目標的格式。

退貨
String

getSchedulerServiceAccountKeyfile

public File getSchedulerServiceAccountKeyfile ()

獲取 tradefed 測試調度程序服務帳戶密鑰文件。

退貨
File

getSchedulerServiceUrl

public String getSchedulerServiceUrl ()

獲取 tradefed 測試調度程序服務 URL。

退貨
String

獲取服務網址

public String getServiceUrl ()

獲取 tradefed 集群 REST API 的基本 URL。

退貨
String

isDeviceMonitorDisabled

public boolean isDeviceMonitorDisabled ()

返回是否禁用集群設備報告。

退貨
boolean

最大磁盤使用百分比

public long maxDiskUsagePercentage ()

在我們停止租用額外的新任務之前的最大磁盤使用百分比。

退貨
long

shouldCollectEarlyTestSummary

public boolean shouldCollectEarlyTestSummary ()

返回調度程序是否應收集早期測試摘要。

退貨
boolean

shouldUploadInvocationStatus

public Boolean shouldUploadInvocationStatus ()

返回 TF 是否應上傳調用狀態。

退貨
Boolean