叢集選項
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 是否應上傳呼叫狀態。 |
領域
叢集ID
public String mClusterId
mNextClusterIds
publicmNextClusterIds
服務地址
public String mServiceUrl
公共構造函數
叢集選項
public ClusterOptions ()
公共方法
檢查命令狀態
public boolean checkCommandState ()
是否應在心跳期間檢查命令狀態(在 TF 集群上)。
退貨 | |
---|---|
boolean |
檢查租賃許可
public boolean checkPermitsOnLease ()
租賃前檢查一些可用的許可證。
退貨 | |
---|---|
boolean |
取得叢集ID
public String getClusterId ()
取得此 TF 實例的群集 ID。
退貨 | |
---|---|
String |
取得連線逾時
public int getConnectTimeout ()
取得http連線逾時。
退貨 | |
---|---|
int |
取得設備監控快照間隔
public long getDeviceMonitorSnapshotInterval ()
取得每個設備快照之間的時間間隔(以毫秒為單位)。
退貨 | |
---|---|
long |
取得設備標籤
publicgetDeviceTag ()
取得設備序列到標籤的對應。
退貨 | |
---|---|
取得呼叫心跳間隔
public long getInvocationHeartbeatInterval ()
取得呼叫心跳之間的時間間隔(以毫秒為單位)。
退貨 | |
---|---|
long |
取得實驗室名稱
public String getLabName ()
取得主機所屬實驗室的名稱。
退貨 | |
---|---|
String |
取得標籤
publicgetLabels ()
取得主機的標籤。
退貨 | |
---|---|
取得下一個集群 ID
publicgetNextClusterIds ()
取得此 TF 實例的輔助集群 ID。
退貨 | |
---|---|
取得讀取逾時
public int getReadTimeout ()
取得http讀取超時。
退貨 | |
---|---|
int |
取得運行目標格式
public String getRunTargetFormat ()
取得標記運行目標的格式。
退貨 | |
---|---|
String |
取得SchedulerServiceAccountKey文件
public File getSchedulerServiceAccountKeyfile ()
取得 tradefed 測試排程器服務帳戶金鑰檔案。
退貨 | |
---|---|
File |
取得排程服務 URL
public String getSchedulerServiceUrl ()
取得 tradefed 測試排程器服務 URL。
退貨 | |
---|---|
String |
取得服務地址
public String getServiceUrl ()
取得 tradefed 叢集 REST API 的基本 url。
退貨 | |
---|---|
String |
isDeviceMonitorDisabled
public boolean isDeviceMonitorDisabled ()
返回集群設備報告是否已停用。
退貨 | |
---|---|
boolean |
最大磁碟使用百分比
public long maxDiskUsagePercentage ()
我們停止租用額外的新任務之前的最大磁碟使用百分比。
退貨 | |
---|---|
long |
應收集早期測試總結
public boolean shouldCollectEarlyTestSummary ()
返回調度程序是否應收集早期測試摘要。
退貨 | |
---|---|
boolean |
應該上傳呼叫狀態
public Boolean shouldUploadInvocationStatus ()
傳回 TF 是否應上傳呼叫狀態。
退貨 | |
---|---|
Boolean |