AbstractHostMonitor

public abstract class AbstractHostMonitor
extends Thread implements IHostMonitor

java.lang.Object
java.lang.Thread
  com.android.tradefed.util.hostmetric.AbstractHostMonitor


호스트 상태 모니터링의 일반적인 클래스입니다. 에이전트의 세부정보로 dispatch()를 구현합니다.

요약

필드

protected Map<String, String> mHostData

protected Queue<IHostMonitor.HostDataPoint> mHostEvents

공개 생성자

AbstractHostMonitor()

공개 메서드

void addHostEvent(IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)

전송할 특수 이벤트를 추가하기 위해 호출되는 메서드입니다.

abstract void dispatch()

현재 호스트 데이터 값을 수집하고 내보냅니다.

IHostMonitor.HostMetricType getTag()

도달할 IHostMonitor의 '클래스'를 식별하는 태그를 반환합니다.

void run()
void terminate()

호스트 모니터를 중지하기 위해 호출되는 메서드입니다.

필드

mHostData

protected Map<String, String> mHostData

mHostEvents

protected Queue<IHostMonitor.HostDataPoint> mHostEvents

공개 생성자

AbstractHostMonitor

public AbstractHostMonitor ()

공개 메서드

addHostEvent

public void addHostEvent (IHostMonitor.HostMetricType tag, 
                IHostMonitor.HostDataPoint event)

전송할 특수 이벤트를 추가하기 위해 호출되는 메서드입니다.

매개변수
tag IHostMonitor.HostMetricType

event IHostMonitor.HostDataPoint

dispatch

public abstract void dispatch ()

현재 호스트 데이터 값을 수집하고 내보냅니다. 대기열의 이벤트가 있는 경우 이를 내보내야 합니다.

getTag

public IHostMonitor.HostMetricType getTag ()

도달할 IHostMonitor의 '클래스'를 식별하는 태그를 반환합니다.

반환
IHostMonitor.HostMetricType

run

public void run ()

terminate

public void terminate ()

호스트 모니터를 중지하기 위해 호출되는 메서드입니다.