ClusterCommand
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()
แสดงผลจำนวน Shard |
Integer
|
getShardIndex()
แสดงผลดัชนี Shard |
List<String>
|
getTargetDeviceSerials()
แสดงผลรายการหมายเลขซีเรียลของอุปกรณ์เป้าหมายที่จะพยายามเรียกใช้คำสั่งนี้ |
String
|
getTaskId()
แสดงรหัสงาน |
void
|
setTargetDeviceSerials(List<String> 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: ดัชนี Shard |
เมธอดสาธารณะ
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> |
multimap ของตัวเลือกเพิ่มเติมที่จะแทรก |
getRequestId
public String getRequestId ()
แสดงผลรหัสคำขอ
| การคืนสินค้า | |
|---|---|
String |
รหัสคำขอ |
getRequestType
public ClusterCommand.RequestType getRequestType ()
แสดงผลประเภทคำขอ
| การคืนสินค้า | |
|---|---|
ClusterCommand.RequestType |
ประเภทคำขอ |
getShardCount
public Integer getShardCount ()
แสดงผลจำนวน Shard
| การคืนสินค้า | |
|---|---|
Integer |
จำนวนชาร์ด |
getShardIndex
public Integer getShardIndex ()
แสดงผลดัชนี Shard
| การคืนสินค้า | |
|---|---|
Integer |
ดัชนีของ Shard |
getTargetDeviceSerials
public List<String> getTargetDeviceSerials ()
แสดงผลรายการหมายเลขซีเรียลของอุปกรณ์เป้าหมายที่จะพยายามเรียกใช้คำสั่งนี้
| การคืนสินค้า | |
|---|---|
List<String> |
รายการหมายเลขซีเรียลของอุปกรณ์เป้าหมาย |
getTaskId
public String getTaskId ()
แสดงรหัสงาน
| การคืนสินค้า | |
|---|---|
String |
รหัสงาน |
setTargetDeviceSerials
public void setTargetDeviceSerials (List<String> targetDeviceSerials)
ตั้งค่ารายการหมายเลขซีเรียลของอุปกรณ์เป้าหมายที่จะลองเรียกใช้คำสั่ง
| พารามิเตอร์ | |
|---|---|
targetDeviceSerials |
List: รายการหมายเลขซีเรียลของอุปกรณ์ที่จะตั้งค่า |