ClusterClient
public
class
ClusterClient
extends Object
implements
IClusterClient
java.lang.Object
|
↳ |
com.android.tradefed.cluster.ClusterClient
|
הטמעה של IClusterClient
לצורך אינטראקציה עם הקצה העורפי של TFC.
סיכום
שיטות ציבוריות |
IClusterEventUploader<ClusterCommandEvent>
|
getCommandEventUploader()
מקבלים IClusterEventUploader שאפשר להשתמש בו כדי להעלות ClusterCommandEvent .
|
ClusterCommand.State
|
getCommandState(String requestId, String commandId)
בדיקת המצב של פקודת אשכולות.
|
ClusterCommandStatus
|
getCommandStatus(String requestId, String commandId)
הצגת סטטוס הפקודה של פקודה באשכול (המצב והסיבה לביטול, אם הפקודה בוטלה).
|
IClusterEventUploader<ClusterHostEvent>
|
getHostEventUploader()
מקבלים IClusterEventUploader שאפשר להשתמש בו כדי להעלות ClusterHostEvent .
|
TestContext
|
getTestContext(String requestId, String commandId)
|
TestEnvironment
|
getTestEnvironment(String requestId)
אחזור של TestEnvironment לבקשה.
|
|
getTestResources(String requestId)
אחזור TestResource s של בקשה.
|
|
leaseHostCommands(String clusterId, String hostname, deviceInfos, nextClusterIds, int maxTasksTolease)
זיכיון ClusterCommand למארח הנתון.
|
void
|
updateTestContext(String requestId, String commandId, TestContext testContext)
|
יוצרים ציבוריים
ClusterClient
public ClusterClient ()
שיטות ציבוריות
getCommandState
public 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 TestContext getTestContext (String requestId,
String commandId)
פרמטרים |
requestId |
String |
commandId |
String |
getTestResources
public getTestResources (String requestId)
אחזור TestResource
s של בקשה.
leaseHostCommands
public leaseHostCommands (String clusterId,
String hostname,
deviceInfos,
nextClusterIds,
int maxTasksTolease)
זיכיון ClusterCommand
למארח הנתון.
פרמטרים |
clusterId |
String : מזהה האשכול של המארח |
hostname |
String : hostname |
deviceInfos |
: פרטי deviceInfos של המארח |
nextClusterIds |
: רשימה של מזהי האשכולות הבאים שמהם יוקצו פקודות למימוש זיכיון. |
maxTasksTolease |
int : המספר המקסימלי של משימות שאפשר כרגע להקצות ב-lease |
updateTestContext
public void updateTestContext (String requestId,
String commandId,
TestContext testContext)
פרמטרים |
requestId |
String |
commandId |
String |
testContext |
TestContext |
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-22 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-22 (שעון UTC)."],[],[]]