الكتلة
public class ClusterCommand
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommand |
فئة تمثل مهمة تم جلبها من مجموعة TF.
ملخص
المنشأت العامة | |
---|---|
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) يضبط قائمة مسلسلات الجهاز المستهدفة التي سيحاول الأمر التشغيل عليها. |
المنشأت العامة
الكتلة
public ClusterCommand (String commandId, String taskId, String cmdLine)
حدود | |
---|---|
commandId | String |
taskId | String |
cmdLine | String |
الكتلة
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 : فهرس جزء |
الأساليب العامة
fromJson
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
publicgetTargetDeviceSerials ()
تُرجع قائمة مسلسلات الأجهزة المستهدفة التي سيحاول هذا الأمر التشغيل عليها.
عائدات | |
---|---|
قائمة مسلسلات الجهاز المستهدفة |
getTaskId
public String getTaskId ()
إرجاع معرف المهمة.
عائدات | |
---|---|
String | معرف المهمة. |
setTargetDeviceSerials
public void setTargetDeviceSerials (targetDeviceSerials)
يضبط قائمة مسلسلات الجهاز المستهدفة التي سيحاول الأمر التشغيل عليها.
حدود | |
---|---|
targetDeviceSerials |