จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

คำสั่งคลัสเตอร์

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 ()

ส่งคืน ID ความพยายาม

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 : ID ของคำสั่งที่เรียกใช้งานนี้

taskId String : ID ของงานนี้

cmdLine String : บรรทัดคำสั่งที่จะเรียกใช้

attemptId String

requestType ClusterCommand.RequestType : ประเภทคำขอ

shardCount Integer : จำนวนเศษ

shardIndex Integer : ดัชนีเศษ

วิธีการสาธารณะ

จากเจสัน

public static ClusterCommand fromJson (JSONObject json)

พารามิเตอร์
json JSONObject

ส่งคืน
ClusterCommand

พ่น
JSONException

getAttemptId

public String getAttemptId ()

ส่งคืน ID ความพยายาม ความพยายามนี้ถูกสร้างขึ้นแบบสุ่ม GUID ใช้เพื่อแยกแยะการรันคำสั่งหลายคำสั่ง

ส่งคืน
String รหัสความพยายาม

getCommandId

public String getCommandId ()

ส่งกลับรหัสคำสั่ง

ส่งคืน
String รหัสคำสั่ง

รับบรรทัดคำสั่ง

public String getCommandLine ()

ส่งกลับสตริงบรรทัดคำสั่ง

ส่งคืน
String สตริงบรรทัดคำสั่ง

รับตัวเลือกพิเศษ

public UniqueMultiMap<String, String> getExtraOptions ()

ส่งคืน
UniqueMultiMap <String, String> มัลติแมปของตัวเลือกเพิ่มเติมที่จะฉีด

getRequestId

public String getRequestId ()

ส่งกลับรหัสคำขอ

ส่งคืน
String รหัสคำขอ

getRequestType

public ClusterCommand.RequestType getRequestType ()

ส่งกลับประเภทคำขอ

ส่งคืน
ClusterCommand.RequestType ประเภทคำขอ

รับ ShardCount

public Integer getShardCount ()

ส่งกลับจำนวนเศษ

ส่งคืน
Integer นับเศษ

รับ ShardIndex

public Integer getShardIndex ()

ส่งกลับดัชนีเศษ

ส่งคืน
Integer ดัชนีเศษ

getTargetDeviceSerials

public  getTargetDeviceSerials ()

ส่งกลับรายการซีเรียลของอุปกรณ์เป้าหมายที่คำสั่งนี้จะพยายามเรียกใช้

ส่งคืน
รายการซีเรียลของอุปกรณ์เป้าหมาย

รับรหัสงาน

public String getTaskId ()

ส่งคืนรหัสงาน

ส่งคืน
String รหัสงาน

setTargetDeviceSerials

public void setTargetDeviceSerials ( targetDeviceSerials)

ตั้งค่ารายการซีเรียลของอุปกรณ์เป้าหมายที่คำสั่งจะพยายามเรียกใช้

พารามิเตอร์
targetDeviceSerials : รายการซีเรียลของอุปกรณ์ที่จะตั้งค่า