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(
تُستخدَم لضبط قائمة الأرقام التسلسلية للأجهزة المستهدَفة التي سيتم محاولة تنفيذ الأمر عليها. |
وظائف الإنشاء العامة
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 : مؤشر جزء |
الطرق العامة
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 |
: قائمة الأرقام التسلسلية للأجهزة المطلوب ضبطها |