ClusterCommand

public class ClusterCommand
extends Object

java.lang.Object
com.android.tradefed.cluster.ClusterCommand


מחלקה המייצגת משימה שנלקחה מ-TF Cluster.

סיכום

בנאים ציבוריים

ClusterCommand (String commandId, String taskId, String cmdLine)
ClusterCommand (String requestId, String commandId, String taskId, String cmdLine, String attemptId, ClusterCommand.RequestType requestType, Integer shardCount, Integer shardIndex)

בַּנַאִי.

שיטות ציבוריות

static ClusterCommand fromJson (JSONObject json)
String getAttemptId ()

מחזירה את מזהה הניסיון.

String getCommandId ()

מחזיר את מזהה הפקודה.

String getCommandLine ()

מחזירה את מחרוזת שורת הפקודה.

UniqueMultiMap <String, String> getExtraOptions ()
String getRequestId ()

מחזיר את מזהה הבקשה.

ClusterCommand.RequestType getRequestType ()

מחזיר סוג בקשה

Integer getShardCount ()

מחזירה ספירת רסיסים.

Integer getShardIndex ()

מחזירה מדד רסיסים.

getTargetDeviceSerials ()

מחזירה את רשימת סדרות מכשירי היעד שעליהן תנסה פקודה זו לפעול.

String getTaskId ()

מחזירה את מזהה המשימה.

void setTargetDeviceSerials ( targetDeviceSerials) setTargetDeviceSerials ( targetDeviceSerials)

מגדיר את רשימת סדרות מכשירי היעד שבהם הפקודה תנסה לפעול.

בנאים ציבוריים

ClusterCommand

public ClusterCommand (String commandId, 
                String taskId, 
                String cmdLine)

פרמטרים
commandId String

taskId String

cmdLine String

ClusterCommand

public ClusterCommand (String requestId, 
                String commandId, 
                String taskId, 
                String cmdLine, 
                String attemptId, 
                ClusterCommand.RequestType requestType, 
                Integer shardCount, 
                Integer shardIndex)

בַּנַאִי.

פרמטרים
requestId String : מזהה בקשה

commandId String : המזהה של הפקודה שהנפיקה משימה זו

taskId String : המזהה של משימה זו

cmdLine String : שורת הפקודה להפעלה

attemptId String

requestType ClusterCommand.RequestType : סוג בקשה

shardCount Integer : ספירת רסיסים

shardIndex Integer : אינדקס רסיס

שיטות ציבוריות

מ-Json

public static ClusterCommand fromJson (JSONObject json)

פרמטרים
json JSONObject

החזרות
ClusterCommand

זורק
JSONException

getAttemptId

public String getAttemptId ()

מחזירה את מזהה הניסיון. הניסיון נוצר באקראי GUID המשמש להבחין בין ריצות פקודות מרובות.

החזרות
String מזהה הניסיון

getCommandId

public String getCommandId ()

מחזיר את מזהה הפקודה.

החזרות
String מזהה הפקודה

getCommandLine

public String getCommandLine ()

מחזירה את מחרוזת שורת הפקודה.

החזרות
String מחרוזת שורת הפקודה.

getExtraOptions

public UniqueMultiMap<String, String> getExtraOptions ()

החזרות
UniqueMultiMap <String, String> מפה של אפשרויות נוספות להזרקה

getRequestId

public String getRequestId ()

מחזיר את מזהה הבקשה.

החזרות
String מזהה הבקשה

getRequestType

public ClusterCommand.RequestType getRequestType ()

מחזיר סוג בקשה

החזרות
ClusterCommand.RequestType סוג בקשה

getShardCount

public Integer getShardCount ()

מחזירה ספירת רסיסים.

החזרות
Integer ספירת רסיסים.

getShardIndex

public Integer getShardIndex ()

מחזירה מדד רסיסים.

החזרות
Integer מדד רסיסים.

getTargetDeviceSerials

public  getTargetDeviceSerials ()

מחזירה את רשימת סדרות מכשירי היעד שעליהן תנסה פקודה זו לפעול.

החזרות
רשימת סדרות מכשיר היעד

getTaskId

public String getTaskId ()

מחזירה את מזהה המשימה.

החזרות
String מזהה משימה.

setTargetDeviceSerials

public void setTargetDeviceSerials ( targetDeviceSerials)

מגדיר את רשימת סדרות מכשירי היעד שבהם הפקודה תנסה לפעול.

פרמטרים
targetDeviceSerials : רשימת סדרות המכשירים שיש להגדיר