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 של הצג. |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) מאפשר |
void | stop () שיטה שתיקרא כאשר יהיה צורך לעצור את הצג. |
בוני ציבור
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 של הצג.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
מאפשר DeviceLister
כדי להיות מוגדר. לאחר ניסיון מוצלח להגדיר את ה- Lister, יישומים עשויים לבטל את כל הניסיונות הבאים.
פרמטרים | |
---|---|
lister | IDeviceMonitor.DeviceLister |
תפסיק
public void stop ()
שיטה שתיקרא כאשר יהיה צורך לעצור את הצג.