ClusterClient
public
class
ClusterClient
extends Object
implements
IClusterClient
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterClient |
הטמעה של IClusterClient
לצורך אינטראקציה עם הקצה העורפי של TFC.
סיכום
יוצרים ציבוריים | |
---|---|
ClusterClient()
|
שיטות ציבוריות | |
---|---|
IClusterEventUploader<ClusterCommandEvent>
|
getCommandEventUploader()
מקבלים |
ClusterCommand.State
|
getCommandState(String requestId, String commandId)
בדיקת המצב של פקודת אשכולות. |
ClusterCommandStatus
|
getCommandStatus(String requestId, String commandId)
הצגת סטטוס הפקודה של פקודה באשכול (המצב והסיבה לביטול, אם הפקודה בוטלה). |
IClusterEventUploader<ClusterHostEvent>
|
getHostEventUploader()
מקבלים |
TestContext
|
getTestContext(String requestId, String commandId)
|
TestEnvironment
|
getTestEnvironment(String requestId)
אחזור של |
|
getTestResources(String requestId)
אחזור |
|
leaseHostCommands(String clusterId, String hostname,
זיכיון |
void
|
updateTestContext(String requestId, String commandId, TestContext testContext)
|
יוצרים ציבוריים
ClusterClient
public ClusterClient ()
שיטות ציבוריות
getCommandEventUploader
public IClusterEventUploader<ClusterCommandEvent> getCommandEventUploader ()
מקבלים IClusterEventUploader
שאפשר להשתמש בו כדי להעלות ClusterCommandEvent
.
החזרות | |
---|---|
IClusterEventUploader<ClusterCommandEvent> |
getCommandState
public ClusterCommand.State getCommandState (String requestId, String commandId)
איך בודקים את המצב של פקודת אשכולות
פרמטרים | |
---|---|
requestId |
String : מזהה הבקשה של האשכול |
commandId |
String : מזהה הפקודה של האשכולות |
החזרות | |
---|---|
ClusterCommand.State |
הסטטוס של הפקודה באשכול, או ClusterCommand.State.UNKNOWN אם לא ניתן היה לקבוע את הסטטוס |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId, String commandId)
הצגת סטטוס הפקודה של פקודה באשכול (המצב והסיבה לביטול, אם הפקודה בוטלה).
פרמטרים | |
---|---|
requestId |
String : מזהה הבקשה של האשכול |
commandId |
String : מזהה הפקודה של האשכולות |
החזרות | |
---|---|
ClusterCommandStatus |
ClusterCommandStatus שמייצג את המצב ואת סיבה הביטול אם הפקודה מבוטלת. המצב הוא ClusterCommand.State.UNKNOWN אם לא ניתן היה לקבוע אותו. |
getHostEventUploader
public IClusterEventUploader<ClusterHostEvent> getHostEventUploader ()
מקבלים IClusterEventUploader
שאפשר להשתמש בו כדי להעלות ClusterHostEvent
.
החזרות | |
---|---|
IClusterEventUploader<ClusterHostEvent> |
getTestContext
public TestContext getTestContext (String requestId, String commandId)
פרמטרים | |
---|---|
requestId |
String |
commandId |
String |
החזרות | |
---|---|
TestContext |
זריקות | |
---|---|
JSONException |
getTestEnvironment
public TestEnvironment getTestEnvironment (String requestId)
אחזור של TestEnvironment
לבקשה.
החזרות | |
---|---|
TestEnvironment |
אובייקט TestEnvironment . |
זריקות | |
---|---|
JSONException |
getTestResources
publicgetTestResources (String requestId)
אחזור TestResource
s של בקשה.
החזרות | |
---|---|
|
רשימה של TestResource . |
זריקות | |
---|---|
JSONException |
leaseHostCommands
publicleaseHostCommands (String clusterId, String hostname, deviceInfos, nextClusterIds, int maxTasksTolease)
זיכיון ClusterCommand
למארח הנתון.
פרמטרים | |
---|---|
clusterId |
String : מזהה האשכול של המארח |
hostname |
String : hostname |
deviceInfos |
: פרטי deviceInfos של המארח |
nextClusterIds |
: רשימה של מזהי האשכולות הבאים שמהם יוקצו פקודות למימוש זיכיון. |
maxTasksTolease |
int : המספר המקסימלי של משימות שאפשר כרגע להקצות ב-lease |
החזרות | |
---|---|
|
רשימה של ClusterCommand |
זריקות | |
---|---|
JSONException |
updateTestContext
public void updateTestContext (String requestId, String commandId, TestContext testContext)
פרמטרים | |
---|---|
requestId |
String |
commandId |
String |
testContext |
TestContext |
זריקות | |
---|---|
JSONException |