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

public  getDeviceResourceMetrics (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

public  getHostResourceMetrics ()

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

การส่งคืน
ERROR(/Collection) ของ Resource โฮสต์