org.eclipse.jetty.monitor.jmx
类 MonitorTask

java.lang.Object
  继承者 java.util.TimerTask
      继承者 org.eclipse.jetty.monitor.jmx.MonitorTask
所有已实现的接口:
Runnable

public class MonitorTask
extends TimerTask

MonitorTask Invokes polling of the JMX server for the MBean attribute values through executing timer task scheduled using java.util.Timer at specified poll interval following a specified delay.


方法摘要
static void cancel(MonitorAction action)
          Cancel timer task for specified monitor action
 void run()
          This method is invoked when poll interval has elapsed to check if the event trigger conditions are satisfied in order to fire event.
static void schedule(MonitorAction action)
          Schedule new timer task for specified monitor action
 
从类 java.util.TimerTask 继承的方法
cancel, scheduledExecutionTime
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

schedule

public static void schedule(MonitorAction action)
Schedule new timer task for specified monitor action

参数:
action - monitor action

cancel

public static void cancel(MonitorAction action)
Cancel timer task for specified monitor action

参数:
action - monitor action

run

public final void run()
This method is invoked when poll interval has elapsed to check if the event trigger conditions are satisfied in order to fire event.

指定者:
接口 Runnable 中的 run
指定者:
TimerTask 中的 run
另请参见:
TimerTask.run()


Copyright © 2013. All Rights Reserved.