AbstractHostMonitor
  public
  
  
  abstract
  class
  AbstractHostMonitor
  
    extends Object
  
  
  
  
  
      implements
      
        IHostMonitor
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.util.hostmetric.AbstractHostMonitor | 
호스트 상태 모니터링을 위한 일반적인 클래스입니다. 에이전트의 세부정보로 dispatch()를 구현합니다.
요약
| 필드 | |
|---|---|
| 
    protected
    
    
     | mHostData
 | 
| 
    protected
    
    
     | mHostEvents
 | 
| 공개 생성자 | |
|---|---|
| 
      AbstractHostMonitor()
       | |
| 공개 메서드 | |
|---|---|
| 
        
        
        
        
        
        void | 
      addHostEvent(IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
      전송할 특수 이벤트를 추가하기 위해 호출되는 메서드입니다. | 
| 
        abstract
        
        
        
        
        void | 
      dispatch()
      현재 호스트 데이터 값을 수집하고 내보냅니다. | 
| 
        
        
        
        
        
        IHostMonitor.HostMetricType | 
      getTag()
      도달할  | 
| 
        
        
        
        
        
        void | 
      run()
       | 
| 
        
        
        
        
        
        void | 
      terminate()
      호스트 모니터를 중지하기 위해 호출되는 메서드입니다. | 
필드
mHostData
protectedmHostData 
mHostEvents
protectedmHostEvents 
공개 생성자
AbstractHostMonitor
public AbstractHostMonitor ()
공개 메서드
addHostEvent
public void addHostEvent (IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
전송할 특수 이벤트를 추가하기 위해 호출되는 메서드입니다.
| 매개변수 | |
|---|---|
| tag | IHostMonitor.HostMetricType | 
| event | IHostMonitor.HostDataPoint | 
전달
public abstract void dispatch ()
현재 호스트 데이터 값을 수집하고 내보냅니다. 큐의 이벤트(있는 경우)를 내보내야 합니다.
getTag
public IHostMonitor.HostMetricType getTag ()
도달할 IHostMonitor의 '클래스'를 식별하는 태그를 반환합니다.
| 반환 값 | |
|---|---|
| IHostMonitor.HostMetricType | |
실행
public void run ()
종료
public void terminate ()
호스트 모니터를 중지하기 위해 호출되는 메서드입니다.
