集群選項

public interface IClusterOptions

com.android.tradefed.cluster.IClusterOptions


獲取集群相關選項的接口。

概括

公共方法

abstract boolean checkCommandState ()

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

abstract boolean checkPermitsOnLease ()

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

abstract String getClusterId ()

獲取此 TF 實例的集群 ID。

abstract int getConnectTimeout ()

獲取 http 連接超時。

abstract MultiMap <String, String> getDeviceGroup ()

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

abstract long getDeviceMonitorSnapshotInterval ()

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

abstract getDeviceTag ()

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

abstract long getInvocationHeartbeatInterval ()

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

abstract String getLabName ()

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

abstract getLabels ()

獲取主機標籤。

abstract getNextClusterIds ()

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

abstract int getReadTimeout ()

獲取 http 讀取超時。

abstract String getRunTargetFormat ()

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

abstract File getSchedulerServiceAccountKeyfile ()

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

abstract String getSchedulerServiceUrl ()

獲取 tradefed 測試計劃程序服務 URL。

abstract String getServiceUrl ()

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

abstract boolean isDeviceMonitorDisabled ()

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

abstract long maxDiskUsagePercentage ()

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

abstract boolean shouldCollectEarlyTestSummary ()

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

abstract Boolean shouldUploadInvocationStatus ()

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

公共方法

檢查命令狀態

public abstract boolean checkCommandState ()

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

退貨
boolean

checkPermitsOnLease

public abstract boolean checkPermitsOnLease ()

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

退貨
boolean

獲取ClusterId

public abstract String getClusterId ()

獲取此 TF 實例的集群 ID。

退貨
String

獲取連接超時

public abstract int getConnectTimeout ()

獲取 http 連接超時。

退貨
int

獲取設備組

public abstract MultiMap<String, String> getDeviceGroup ()

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

退貨
MultiMap <String, String>

getDeviceMonitorSnapshotInterval

public abstract long getDeviceMonitorSnapshotInterval ()

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

退貨
long

獲取設備標籤

public abstract  getDeviceTag ()

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

退貨

getInvocationHeartbeatInterval

public abstract long getInvocationHeartbeatInterval ()

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

退貨
long

獲取實驗室名稱

public abstract String getLabName ()

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

退貨
String

獲取標籤

public abstract  getLabels ()

獲取主機標籤。

退貨

getNextClusterIds

public abstract  getNextClusterIds ()

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

退貨

getReadTimeout

public abstract int getReadTimeout ()

獲取 http 讀取超時。

退貨
int

getRunTargetFormat

public abstract String getRunTargetFormat ()

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

退貨
String

getSchedulerServiceAccountKey文件

public abstract File getSchedulerServiceAccountKeyfile ()

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

退貨
File

getSchedulerServiceUrl

public abstract String getSchedulerServiceUrl ()

獲取 tradefed 測試計劃程序服務 URL。

退貨
String

獲取服務地址

public abstract String getServiceUrl ()

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

退貨
String

isDeviceMonitorDisabled

public abstract boolean isDeviceMonitorDisabled ()

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

退貨
boolean

最大磁盤使用百分比

public abstract long maxDiskUsagePercentage ()

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

退貨
long

shouldCollectEarlyTestSummary

public abstract boolean shouldCollectEarlyTestSummary ()

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

退貨
boolean

應該上傳調用狀態

public abstract Boolean shouldUploadInvocationStatus ()

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

退貨
Boolean