IClusterClient
public
interface
IClusterClient
com.android.tradefed.cluster.IClusterClient |
อินเทอร์เฟซสำหรับการโต้ตอบกับแบ็กเอนด์ TFC
สรุป
ค่าคงที่ | |
---|---|
String |
TYPE_NAME
ชื่อประเภทออบเจ็กต์การกําหนดค่าที่ไม่ซ้ำกัน |
เมธอดสาธารณะ | |
---|---|
abstract
IClusterEventUploader<ClusterCommandEvent>
|
getCommandEventUploader()
รับ |
abstract
ClusterCommand.State
|
getCommandState(String requestId, String commandId)
ระบุสถานะของคําสั่งคลัสเตอร์ |
default
ClusterCommandStatus
|
getCommandStatus(String requestId, String commandId)
รับสถานะคําสั่งของคําสั่งคลัสเตอร์ (สถานะและเหตุผลในการยกเลิกหากยกเลิก) |
abstract
IClusterEventUploader<ClusterHostEvent>
|
getHostEventUploader()
รับ |
abstract
TestContext
|
getTestContext(String requestId, String commandId)
|
abstract
TestEnvironment
|
getTestEnvironment(String requestId)
รับ |
abstract
|
getTestResources(String requestId)
รับ |
abstract
|
leaseHostCommands(String clusterId, String hostname,
เช่า |
abstract
void
|
updateTestContext(String requestId, String commandId, TestContext testContext)
|
ค่าคงที่
TYPE_NAME
public static final String TYPE_NAME
ชื่อประเภทออบเจ็กต์การกําหนดค่าที่ไม่ซ้ำกัน ใช้ดึงข้อมูลอินสแตนซ์แบบ Singleton จาก GlobalConfiguration
ดูเพิ่มเติม
ค่าคงที่: "cluster_client"
เมธอดสาธารณะ
getCommandEventUploader
public abstract IClusterEventUploader<ClusterCommandEvent> getCommandEventUploader ()
รับ IClusterEventUploader
ที่ใช้อัปโหลด ClusterCommandEvent
ได้
คิกรีเทิร์น | |
---|---|
IClusterEventUploader<ClusterCommandEvent> |
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId, String commandId)
ระบุสถานะของคําสั่งคลัสเตอร์
พารามิเตอร์ | |
---|---|
requestId |
String : รหัสคําขอคลัสเตอร์ |
commandId |
String : รหัสคําสั่งคลัสเตอร์ |
คิกรีเทิร์น | |
---|---|
ClusterCommand.State |
สถานะของคําสั่งคลัสเตอร์ หรือ ClusterCommand.State.UNKNOWN หากไม่สามารถระบุสถานะได้ |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId, String commandId)
รับสถานะคําสั่งของคําสั่งคลัสเตอร์ (สถานะและเหตุผลในการยกเลิกหากยกเลิก)
พารามิเตอร์ | |
---|---|
requestId |
String : รหัสคําขอคลัสเตอร์ |
commandId |
String : รหัสคําสั่งคลัสเตอร์ |
คิกรีเทิร์น | |
---|---|
ClusterCommandStatus |
ClusterCommandStatus ที่แสดงสถานะและเหตุผลในการยกเลิกหากมีการยกเลิกคําสั่ง สถานะจะเป็น ClusterCommand.State.UNKNOWN หากไม่สามารถระบุได้ |
getHostEventUploader
public abstract IClusterEventUploader<ClusterHostEvent> getHostEventUploader ()
รับ IClusterEventUploader
ที่ใช้อัปโหลด ClusterHostEvent
ได้
คิกรีเทิร์น | |
---|---|
IClusterEventUploader<ClusterHostEvent> |
getTestContext
public abstract TestContext getTestContext (String requestId, String commandId)
พารามิเตอร์ | |
---|---|
requestId |
String |
commandId |
String |
คิกรีเทิร์น | |
---|---|
TestContext |
โยน | |
---|---|
JSONException |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
รับ TestEnvironment
สำหรับคำขอ
คิกรีเทิร์น | |
---|---|
TestEnvironment |
ออบเจ็กต์ TestEnvironment |
โยน | |
---|---|
|
IOException |
|
org.json.JSONException |
JSONException |
getTestResources
public abstractgetTestResources (String requestId)
รับ TestResource
สำหรับคำขอ
คิกรีเทิร์น | |
---|---|
|
รายการ TestResource |
โยน | |
---|---|
|
IOException |
|
org.json.JSONException |
JSONException |
leaseHostCommands
public abstractleaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease)
เช่า ClusterCommand
สำหรับโฮสต์ที่ระบุ
พารามิเตอร์ | |
---|---|
clusterId |
String : รหัสคลัสเตอร์ของผู้จัดการประชุม |
hostname |
String : ชื่อโฮสต์ |
devices |
: deviceInfos ที่โฮสต์มี |
nextClusterIds |
: รายการรหัสคลัสเตอร์ถัดไปที่จะเช่าคําสั่ง |
maxTasksTolease |
int : จํานวนงานสูงสุดที่เช่าได้ในปัจจุบัน |
คิกรีเทิร์น | |
---|---|
|
รายการ ClusterCommand |
โยน | |
---|---|
|
org.json.JSONException |
JSONException |
updateTestContext
public abstract void updateTestContext (String requestId, String commandId, TestContext testContext)
พารามิเตอร์ | |
---|---|
requestId |
String |
commandId |
String |
testContext |
TestContext |
โยน | |
---|---|
JSONException |