DeviceMonitorMultiplexer
  public
  
  
  
  class
  DeviceMonitorMultiplexer
  
    extends Object
  
  
  
  
  
      implements
      
        IDeviceMonitor
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.device.DeviceMonitorMultiplexer | 
요청을 여러 IDeviceMonitor에 전파하는 프록시 클래스입니다.
요약
공개 생성자 | |
|---|---|
      
      DeviceMonitorMultiplexer()
      
      
     | 
  |
공개 메서드 | |
|---|---|
        
        
        
        
        
        void
     | 
  
    
      
      addMonitor(IDeviceMonitor globalDeviceMonitor)
      
      
     | 
  
        
        
        
        
        
        void
     | 
  
    
      
      addMonitors(
      
     | 
  
        
        
        
        
        
        void
     | 
  
    
      
      notifyDeviceStateChange(String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
      
      
        기기 상태가 변경되었음을   | 
  
        
        
        
        
        
        void
     | 
  
    
      
      removeMonitor(IDeviceMonitor mon)
      
      
     | 
  
        
        
        
        
        
        void
     | 
  
    
      
      run()
      
      
        모니터의 모든 @Option 필드가 설정된 후에 호출되는 메서드입니다.  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      setDeviceLister(IDeviceMonitor.DeviceLister lister)
      
      
        
  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      stop()
      
      
        모니터를 중지해야 할 때 호출되는 메서드입니다.  | 
  
공개 생성자
DeviceMonitorMultiplexer
public DeviceMonitorMultiplexer ()
공개 메서드
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
| 매개변수 | |
|---|---|
globalDeviceMonitor | 
        
          IDeviceMonitor  | 
      
addMonitors
public void addMonitors (globalDeviceMonitors) 
| 매개변수 | |
|---|---|
globalDeviceMonitors | 
        
            | 
      
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 ()
모니터를 중지해야 할 때 호출되는 메서드입니다.