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

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

ส่งกลับ ID คำสั่ง

String getCommandLine ()

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

UniqueMultiMap <String, String> getExtraOptions ()
String getRequestId ()

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

ClusterCommand.RequestType getRequestType ()

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

Integer getShardCount ()

ส่งกลับจำนวนชาร์ด

Integer getShardIndex ()

ส่งกลับดัชนีชาร์ด

getTargetDeviceSerials ()

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

String getTaskId ()

ส่งกลับ ID งาน

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 รหัสความพยายาม

รับCommandId

public String getCommandId ()

ส่งกลับ ID คำสั่ง

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

รับCommandLine

public String getCommandLine ()

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

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

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

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

public  getTargetDeviceSerials ()

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

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

getTaskId

public String getTaskId ()

ส่งกลับ ID งาน

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

setTargetDeviceSerials

public void setTargetDeviceSerials ( targetDeviceSerials)

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

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

,

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

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

ส่งกลับ ID คำสั่ง

String getCommandLine ()

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

UniqueMultiMap <String, String> getExtraOptions ()
String getRequestId ()

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

ClusterCommand.RequestType getRequestType ()

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

Integer getShardCount ()

ส่งกลับจำนวนชาร์ด

Integer getShardIndex ()

ส่งกลับดัชนีชาร์ด

getTargetDeviceSerials ()

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

String getTaskId ()

ส่งกลับ ID งาน

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 รหัสความพยายาม

รับCommandId

public String getCommandId ()

ส่งกลับ ID คำสั่ง

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

รับCommandLine

public String getCommandLine ()

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

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

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

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

public  getTargetDeviceSerials ()

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

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

getTaskId

public String getTaskId ()

ส่งกลับ ID งาน

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

setTargetDeviceSerials

public void setTargetDeviceSerials ( targetDeviceSerials)

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

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