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