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()
แสดงผลจํานวนกลุ่ม |
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 |
: รายการหมายเลขซีเรียลของอุปกรณ์ที่จะตั้งค่า |