ClusterCommand
public class ClusterCommand
extends Object
java.lang.Object | |
เ | com.android.tradefed.cluster.ClusterCommand |
คลาสที่แสดงถึงงานที่ดึงมาจาก TF Cluster
สรุป
คลาสที่ซ้อนกัน | |
---|---|
enum | ClusterCommand.RequestType |
enum | ClusterCommand.State สถานะของคำสั่งในคลัสเตอร์ 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 () ส่งกลับ ID ความพยายาม |
String | getCommandId () ส่งกลับ ID คำสั่ง |
String | getCommandLine () ส่งกลับสตริงบรรทัดคำสั่ง |
UniqueMultiMap <String, String> | getExtraOptions () |
String | getRequestId () ส่งกลับ ID คำขอ |
ClusterCommand.RequestType | getRequestType () ส่งกลับประเภทคำขอ |
Integer | getShardCount () ส่งกลับจำนวนชาร์ด |
Integer | getShardIndex () ส่งกลับดัชนีชาร์ด |
getTargetDeviceSerials () ส่งคืนรายการซีเรียลของอุปกรณ์เป้าหมายที่คำสั่งนี้จะพยายามเรียกใช้ | |
String | getTaskId () ส่งกลับ ID งาน |
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 : ID ของคำสั่งที่ออกงานนี้ |
taskId | String : ID ของงานนี้ |
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 ()
ส่งกลับ ID ความพยายาม ความพยายามถูกสร้างขึ้นแบบสุ่ม GUID ใช้เพื่อแยกแยะการรันคำสั่งหลายคำสั่ง
คืนสินค้า | |
---|---|
String | ความพยายาม ID |
getCommandId
public String getCommandId ()
ส่งกลับ ID คำสั่ง
คืนสินค้า | |
---|---|
String | คำสั่ง ID |
getCommandLine
public String getCommandLine ()
ส่งกลับสตริงบรรทัดคำสั่ง
คืนสินค้า | |
---|---|
String | สตริงบรรทัดคำสั่ง |
getExtraOptions
public UniqueMultiMap<String, String> getExtraOptions ()
คืนสินค้า | |
---|---|
UniqueMultiMap <String, String> | มัลติแมปของตัวเลือกเพิ่มเติมเพื่อฉีด |
getRequestId
public String getRequestId ()
ส่งกลับ ID คำขอ
คืนสินค้า | |
---|---|
String | รหัสคำขอ |
getRequestType
public ClusterCommand.RequestType getRequestType ()
ส่งกลับประเภทคำขอ
คืนสินค้า | |
---|---|
ClusterCommand.RequestType | ประเภทคำขอ |
getShardCount
public Integer getShardCount ()
ส่งกลับจำนวนชาร์ด
คืนสินค้า | |
---|---|
Integer | นับชาร์ด |
getShardIndex
public Integer getShardIndex ()
ส่งกลับดัชนีชาร์ด
คืนสินค้า | |
---|---|
Integer | ดัชนีชาร์ด |
getTargetDeviceSerials
publicgetTargetDeviceSerials ()
ส่งคืนรายการซีเรียลของอุปกรณ์เป้าหมายที่คำสั่งนี้จะพยายามเรียกใช้
คืนสินค้า | |
---|---|
รายการซีเรียลของอุปกรณ์เป้าหมาย |
getTaskId
public String getTaskId ()
ส่งกลับ ID งาน
คืนสินค้า | |
---|---|
String | รหัสงาน |
setTargetDeviceSerials
public void setTargetDeviceSerials (targetDeviceSerials)
ตั้งค่ารายการซีเรียลของอุปกรณ์เป้าหมายที่คำสั่งจะพยายามรัน
พารามิเตอร์ | |
---|---|
targetDeviceSerials |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
Last updated 2022-08-15 UTC.