集群選項

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 測試計劃程序服務 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檢索單例實例。

mClusterId

public String mClusterId

mNextClusterIds

public  mNextClusterIds

mServiceUrl

public String mServiceUrl

公共構造函數

集群選項

public ClusterOptions ()

公共方法

檢查命令狀態

public boolean checkCommandState ()

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

退貨
boolean

checkPermitsOnLease

public boolean checkPermitsOnLease ()

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

退貨
boolean

獲取ClusterId

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

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

退貨

getInvocationHeartbeatInterval

public long getInvocationHeartbeatInterval ()

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

退貨
long

獲取實驗室名稱

public String getLabName ()

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

退貨
String

獲取標籤

public  getLabels ()

獲取主機標籤。

退貨

getNextClusterIds

public  getNextClusterIds ()

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

退貨

getReadTimeout

public int getReadTimeout ()

獲取 http 讀取超時。

退貨
int

getRunTargetFormat

public String getRunTargetFormat ()

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

退貨
String

getSchedulerServiceAccountKey文件

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

應該上傳調用狀態

public Boolean shouldUploadInvocationStatus ()

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

退貨
Boolean