org.eclipse.jetty.monitor.jmx
Class MonitorTask

java.lang.Object
  extended by java.util.TimerTask
      extended by org.eclipse.jetty.monitor.jmx.MonitorTask
All Implemented Interfaces:
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.


Method Summary
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
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

schedule

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

Parameters:
action - monitor action

cancel

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

Parameters:
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.

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask
See Also:
TimerTask.run()


Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.