IResourceMetricCollector

public interface IResourceMetricCollector

com.android.tradefed.monitoring.collector.IResourceMetricCollector


อินเทอร์เฟซสำหรับผู้ใช้ในการใช้ตัวรวบรวมทรัพยากรที่กำหนดเอง

สรุป

เมธอดสาธารณะ

default long getDeviceMetricizeTimeoutMs()

รับการหมดเวลาในการแปลงเมตริกของอุปกรณ์เป็นมิลลิวินาที

default Collection<Resource> getDeviceResourceMetrics(DeviceDescriptor descriptor, IDeviceManager deviceManager)

รวบรวมเมตริกทรัพยากรของอุปกรณ์

default long getHostMetricizeTimeoutMs()

รับการหมดเวลาในการแปลงเมตริกของโฮสต์เป็นมิลลิวินาที

default Collection<Resource> getHostResourceMetrics()

รวบรวมเมตริกทรัพยากรของโฮสต์

เมธอดสาธารณะ

getDeviceMetricizeTimeoutMs

public long getDeviceMetricizeTimeoutMs ()

รับการหมดเวลาในการแปลงเมตริกของอุปกรณ์เป็นมิลลิวินาที

การคืนสินค้า
long

getDeviceResourceMetrics

public Collection<Resource> getDeviceResourceMetrics (DeviceDescriptor descriptor, 
                IDeviceManager deviceManager)

รวบรวมเมตริกทรัพยากรของอุปกรณ์ ฟังก์ชันต้องแสดงผลภายใน IResourceMetricCollector.getDeviceMetricizeTimeoutMs() มิลลิวินาที ไม่เช่นนั้นผลลัพธ์จะถูก ทิ้งโดย LabResourceDeviceMonitor นอกจากนี้ โปรดตรวจสอบ Thread.currentThread().isInterrupted() ก่อนดำเนินการที่ใช้เวลานานและแสดงผลทันที

พารามิเตอร์
descriptor DeviceDescriptor: DeviceDescriptor เกี่ยวกับอุปกรณ์ที่แปลงเมตริก

deviceManager IDeviceManager: อินสแตนซ์ IDeviceManager

การคืนสินค้า
Collection<Resource> Collection ของ Resource ของอุปกรณ์

getHostMetricizeTimeoutMs

public long getHostMetricizeTimeoutMs ()

รับการหมดเวลาในการแปลงเมตริกของโฮสต์เป็นมิลลิวินาที

การคืนสินค้า
long

getHostResourceMetrics

public Collection<Resource> getHostResourceMetrics ()

รวบรวมเมตริกทรัพยากรของโฮสต์ ฟังก์ชันต้องแสดงผลภายใน IResourceMetricCollector.getHostMetricizeTimeoutMs() มิลลิวินาที ไม่เช่นนั้นผลลัพธ์จะถูก ทิ้งโดย LabResourceDeviceMonitor นอกจากนี้ โปรดตรวจสอบ Thread.currentThread().isInterrupted() ก่อนดำเนินการที่ใช้เวลานานและแสดงผลทันที

การคืนสินค้า
Collection<Resource> Collection ของ Resource ของโฮสต์