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
สรุป
ตัวสร้างแบบสาธารณะ | |
---|---|
ClusterDeviceMonitor()
|
เมธอดสาธารณะ | |
---|---|
void
|
notifyDeviceStateChange(String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
ส่งสัญญาณให้ |
void
|
run()
เมธอดที่จะเรียกใช้หลังจากตั้งค่าช่อง @Option ทั้งหมดของ Monitor แล้ว |
void
|
setDeviceLister(IDeviceMonitor.DeviceLister lister)
อนุญาตให้ตั้งค่า |
void
|
stop()
เมธอดที่จะเรียกใช้เมื่อต้องหยุด Monitor |
ตัวสร้างแบบสาธารณะ
ClusterDeviceMonitor
public ClusterDeviceMonitor ()
เมธอดสาธารณะ
notifyDeviceStateChange
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 ()
เมธอดที่จะเรียกใช้เมื่อต้องหยุด Monitor