IClusterClient
public interface IClusterClient
com.android.tradefed.cluster.IClusterClient |
ממשק לאינטראקציה עם הקצה האחורי של TFC.
סיכום
קבועים |
---|
String | TYPE_NAME שם סוג אובייקט התצורה הייחודי. |
שיטות ציבוריות |
---|
abstract IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () קבל IClusterEventUploader שניתן להשתמש בו כדי להעלות s ClusterCommandEvent . |
abstract ClusterCommand.State | getCommandState (String requestId, String commandId) קבע את המצב של פקודת אשכול. |
default ClusterCommandStatus | getCommandStatus (String requestId, String commandId) קבל את סטטוס הפקודה של פקודת אשכול (המצב וסיבת הביטול אם בוטלה). |
abstract IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () קבל IClusterEventUploader שניתן להשתמש בו כדי להעלות s ClusterHostEvent . |
abstract TestContext | getTestContext (String requestId, String commandId) |
abstract TestEnvironment | getTestEnvironment (String requestId) קבל את TestEnvironment לבקשה. |
abstract | getTestResources (String requestId) קבל s TestResource לבקשה. |
abstract | leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) השכרת ClusterCommand עבור המארח לתת. |
abstract void | updateTestContext (String requestId, String commandId, TestContext testContext) |
קבועים
סוג שם
public static final String TYPE_NAME
שם סוג אובייקט התצורה הייחודי. משמש כדי לאחזר את מופע הסינגלטון מה- GlobalConfiguration
.
ערך קבוע: "cluster_client"
שיטות ציבוריות
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
קבע את המצב של פקודת אשכול.
פרמטרים |
---|
requestId | String : מזהה בקשת אשכול |
commandId | String : מזהה פקודת אשכול |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
קבל את סטטוס הפקודה של פקודת אשכול (המצב וסיבת הביטול אם בוטלה).
פרמטרים |
---|
requestId | String : מזהה בקשת אשכול |
commandId | String : מזהה פקודת אשכול |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
פרמטרים |
---|
requestId | String |
commandId | String |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
קבל את TestEnvironment
לבקשה.
זורק |
---|
| IOException |
| org.json.JSONException |
JSONException | |
getTestResources
public abstract getTestResources (String requestId)
קבל s TestResource
לבקשה.
זורק |
---|
| IOException |
| org.json.JSONException |
JSONException | |
leaseHostCommands
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
nextClusterIds,
int maxTasksTolease)
השכרת ClusterCommand
עבור המארח לתת.
פרמטרים |
---|
clusterId | String : מזהה אשכול עבור המארח |
hostname | String : שם מארח |
devices | : מידע על deviceInfo שיש למארח |
nextClusterIds | : רשימה של מזהי האשכול הבאים להשכרה מהם פקודות. |
maxTasksTolease | int : המספר המרבי של משימות שניתן להשכיר |
זורק |
---|
| org.json.JSONException |
JSONException | |
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
פרמטרים |
---|
requestId | String |
commandId | String |
testContext | TestContext |