com.taobao.metamorphosis.tools.monitor.system
类 SystemProber

java.lang.Object
  继承者 com.taobao.metamorphosis.tools.monitor.core.AbstractProber
      继承者 com.taobao.metamorphosis.tools.monitor.system.SystemProber
所有已实现的接口:
Prober
直接已知子类:
CPULoadProber, DiskUsedProber, JvmMemoryProber, MetaConnProber, NetWorkUsedProber, PreparedTransactionProber, ZKConnProber

public abstract class SystemProber
extends AbstractProber

对于cpu,内存,磁盘等系统监控的共同点抽象

从以下版本开始:
2011-9-28 下午2:39:43
作者:
无花

字段摘要
protected  ProcessResultHook processResultHook
           
 
从类 com.taobao.metamorphosis.tools.monitor.core.AbstractProber 继承的字段
coreManager, logger
 
构造方法摘要
SystemProber(CoreManager coreManager)
           
 
方法摘要
protected  void alert(String msg)
           
protected  void doProb()
           
protected  void doStopProb()
           
protected abstract  MonitorResult getMonitorResult(MsgSender sender)
          获取一次监控结果
 void init()
           
protected abstract  void processResult(MonitorResult monitorResult)
          一次监控结果的处理
protected  void processResult0(MonitorResult monitorResult)
           
 void setProcessResultHook(ProcessResultHook processResultHook)
           
 
从类 com.taobao.metamorphosis.tools.monitor.core.AbstractProber 继承的方法
cancelFutures, getLogger, getMonitorConfig, getProberExecutor, getReveicers, getSenders, prob, stopProb
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

processResultHook

protected ProcessResultHook processResultHook
构造方法详细信息

SystemProber

public SystemProber(CoreManager coreManager)
方法详细信息

init

public void init()
          throws InitException
抛出:
InitException

doProb

protected void doProb()
               throws InterruptedException
指定者:
AbstractProber 中的 doProb
抛出:
InterruptedException

processResult0

protected void processResult0(MonitorResult monitorResult)
                       throws Exception
抛出:
Exception

doStopProb

protected void doStopProb()
指定者:
AbstractProber 中的 doStopProb

getMonitorResult

protected abstract MonitorResult getMonitorResult(MsgSender sender)
                                           throws Exception
获取一次监控结果

抛出:
Exception

processResult

protected abstract void processResult(MonitorResult monitorResult)
一次监控结果的处理


setProcessResultHook

public void setProcessResultHook(ProcessResultHook processResultHook)

alert

protected void alert(String msg)


Copyright © 2010–2013. All rights reserved.