ตั้งแต่ปี 2026 เป็นต้นไป เราจะเผยแพร่ซอร์สโค้ดไปยัง AOSP ในไตรมาสที่ 2 และ 4 เพื่อให้สอดคล้องกับโมเดลการพัฒนาแบบ Trunk Stable และรับประกันความเสถียรของแพลตฟอร์มสำหรับระบบนิเวศ หากต้องการสร้างและมีส่วนร่วมใน AOSP ให้ใช้ android-latest-release android-latest-release สาขา Manifest จะอ้างอิงถึงรุ่นล่าสุดที่พุชไปยัง AOSP เสมอ ดูข้อมูลเพิ่มเติมได้ที่การเปลี่ยนแปลงใน AOSP
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
IClusterClient
public
interface
IClusterClient
| com.android.tradefed.cluster.IClusterClient
|
อินเทอร์เฟซสำหรับโต้ตอบกับแบ็กเอนด์ของ TFC
สรุป
ค่าคงที่ |
String |
TYPE_NAME
ชื่อประเภทออบเจ็กต์การกำหนดค่าที่ไม่ซ้ำกัน
|
ค่าคงที่
TYPE_NAME
public static final String TYPE_NAME
ชื่อประเภทออบเจ็กต์การกำหนดค่าที่ไม่ซ้ำกัน ใช้เพื่อดึงข้อมูลอินสแตนซ์ Singleton จาก
GlobalConfiguration
ค่าคงที่:
"cluster_client"
เมธอดสาธารณะ
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
กำหนดสถานะของคำสั่งคลัสเตอร์
| พารามิเตอร์ |
requestId |
String: รหัสคำขอคลัสเตอร์ |
commandId |
String: รหัสคำสั่งคลัสเตอร์ |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
ดูสถานะคำสั่งของคำสั่งคลัสเตอร์ (สถานะและเหตุผลในการยกเลิกหากมีการยกเลิก)
| พารามิเตอร์ |
requestId |
String: รหัสคำขอคลัสเตอร์ |
commandId |
String: รหัสคำสั่งคลัสเตอร์ |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
| พารามิเตอร์ |
requestId |
String |
commandId |
String |
| ส่ง |
IOException |
|
JSONException |
|
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
รับ TestEnvironment สำหรับคำขอ
| ส่ง |
|
java.io.IOException |
|
org.json.JSONException |
IOException |
|
JSONException |
|
getTestResources
public abstract List<TestResource> getTestResources (String requestId)
รับ TestResource สำหรับคำขอ
| ส่ง |
|
java.io.IOException |
|
org.json.JSONException |
IOException |
|
JSONException |
|
leaseHostCommands
public abstract List<ClusterCommand> leaseHostCommands (String clusterId,
String hostname,
List<ClusterDeviceInfo> devices,
List<String> nextClusterIds,
int maxTasksTolease)
เวลาได้รับสิทธิ์ ClusterCommand สำหรับโฮสต์ที่ระบุ
| พารามิเตอร์ |
clusterId |
String: รหัสคลัสเตอร์สำหรับโฮสต์ |
hostname |
String: ชื่อโฮสต์ |
devices |
List: deviceInfos ที่โฮสต์มี |
nextClusterIds |
List: รายการรหัสคลัสเตอร์ถัดไปที่จะเช่าคำสั่ง |
maxTasksTolease |
int: จำนวนงานสูงสุดที่เช่าได้ในปัจจุบัน |
| ส่ง |
|
org.json.JSONException |
JSONException |
|
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
| พารามิเตอร์ |
requestId |
String |
commandId |
String |
testContext |
TestContext |
| ส่ง |
IOException |
|
JSONException |
|
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2026-06-22 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2026-06-22 UTC"],[],[]]