จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

ClusterDeviceMonitor

public class ClusterDeviceMonitor
extends LabResourceDeviceMonitor

java.lang.Object
com.google.dualhomelab.monitoringagent.resourcemonitoring.LabResourceServiceGrpc.LabResourceServiceImplBase
com.android.tradefed.monitoring.LabResourceDeviceMonitor
com.android.tradefed.cluster.ClusterDeviceMonitor


การใช้งาน IDeviceMonitor ที่รายงานผลลัพธ์ไปยังบริการ Tradefed Cluster

สรุป

ผู้สร้างสาธารณะ

ClusterDeviceMonitor ()

วิธีการสาธารณะ

void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)

ส่งสัญญาณ IDeviceMonitor ว่าสถานะอุปกรณ์มีการเปลี่ยนแปลง

void run ()

เมธอดที่จะเรียกใช้หลังจากตั้งค่าฟิลด์ @Option ของ Monitor ทั้งหมดแล้ว

void setDeviceLister ( IDeviceMonitor.DeviceLister lister)

อนุญาตให้ตั้งค่า DeviceLister

void stop ()

เมธอดที่จะเรียกใช้เมื่อต้องหยุดมอนิเตอร์

ผู้สร้างสาธารณะ

ClusterDeviceMonitor

public ClusterDeviceMonitor ()

วิธีการสาธารณะ

แจ้งDeviceStateChange

public void notifyDeviceStateChange (String serial, 
                DeviceAllocationState oldState, 
                DeviceAllocationState newState)

ส่งสัญญาณ IDeviceMonitor ว่าสถานะอุปกรณ์มีการเปลี่ยนแปลง การตรวจสอบการใช้งานควรจำกัดปริมาณการประมวลผลและการโต้ตอบของ IDeviceManager/DeviceLister ที่ทำในวิธีนี้

พารามิเตอร์
serial String

oldState DeviceAllocationState

newState DeviceAllocationState

วิ่ง

public void run ()

เมธอดที่จะเรียกใช้หลังจากตั้งค่าฟิลด์ @Option ของ Monitor ทั้งหมดแล้ว

setDeviceLister

public void setDeviceLister (IDeviceMonitor.DeviceLister lister)

อนุญาตให้ตั้งค่า DeviceLister หลังจากพยายามตั้งค่า Lister สำเร็จ การใช้งานอาจละทิ้งความพยายามที่ตามมาทั้งหมด

พารามิเตอร์
lister IDeviceMonitor.DeviceLister

หยุด

public void stop ()

เมธอดที่จะเรียกใช้เมื่อต้องหยุดมอนิเตอร์