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)
      يُرسِل إشارة إلى  | 
| 
        
        
        
        
        
        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 | IDeviceMonitor.DeviceLister | 
محطة توقّف
public void stop ()
طريقة سيتمّ استدعاؤها عند الحاجة إلى إيقاف "المراقب"
