IResourceMetricCollector
public interface IResourceMetricCollector
com.android.tradefed.monitoring.collector.IResourceMetricCollector |
อินเทอร์เฟซสำหรับผู้ใช้เพื่อใช้ตัวรวบรวมทรัพยากรที่กำหนดเอง
สรุป
วิธีการสาธารณะ | |
---|---|
default long | getDeviceMetricizeTimeoutMs () รับค่าระยะหมดเวลาของอุปกรณ์ในหน่วยมิลลิวินาที |
default | getDeviceResourceMetrics ( DeviceDescriptor descriptor, IDeviceManager deviceManager) รวบรวมเมตริกทรัพยากรอุปกรณ์ |
default long | getHostMetricizeTimeoutMs () รับค่าหมดเวลาของการวัดโฮสต์ในหน่วยมิลลิวินาที |
default | getHostResourceMetrics () รวบรวมเมตริกทรัพยากรโฮสต์ |
วิธีการสาธารณะ
getDeviceMetricizeTimeoutMs
public long getDeviceMetricizeTimeoutMs ()
รับค่าระยะหมดเวลาของอุปกรณ์ในหน่วยมิลลิวินาที
คืนสินค้า | |
---|---|
long |
getDeviceResourceMetrics
publicgetDeviceResourceMetrics (DeviceDescriptor descriptor, IDeviceManager deviceManager)
รวบรวมเมตริกทรัพยากรอุปกรณ์ ฟังก์ชันต้องส่งคืนใน getDeviceMetricizeTimeoutMs()
ms ไม่เช่นนั้น LabResourceDeviceMonitor
จะลบผลลัพธ์ นอกจากนี้ โปรดตรวจสอบ Thread.currentThread().isInterrupted() ก่อนการดำเนินการที่มีราคาแพง และส่งคืนทันที
พารามิเตอร์ | |
---|---|
descriptor | DeviceDescriptor : DeviceDescriptor เกี่ยวกับอุปกรณ์การวัด |
deviceManager | IDeviceManager : อินสแตนซ์ IDeviceManager |
คืนสินค้า | |
---|---|
ERROR(/Collection) ของ Resource อุปกรณ์ |
getHostMetricizeTimeoutMs
public long getHostMetricizeTimeoutMs ()
รับค่าหมดเวลาของการวัดโฮสต์ในหน่วยมิลลิวินาที
คืนสินค้า | |
---|---|
long |
getHostResourceMetrics
publicgetHostResourceMetrics ()
รวบรวมเมตริกทรัพยากรโฮสต์ ฟังก์ชันต้องส่งคืนใน getHostMetricizeTimeoutMs()
ms ไม่เช่นนั้น LabResourceDeviceMonitor
จะลบผลลัพธ์ นอกจากนี้ โปรดตรวจสอบ Thread.currentThread().isInterrupted() ก่อนการดำเนินการที่มีราคาแพง และส่งคืนทันที
คืนสินค้า | |
---|---|
ERROR(/Collection) ของ Resource โฮสต์ |