org.eclipse.jetty.monitor.integration
Class JavaMonitorAction

java.lang.Object
  extended by org.eclipse.jetty.monitor.jmx.NotifierGroup
      extended by org.eclipse.jetty.monitor.jmx.MonitorAction
          extended by org.eclipse.jetty.monitor.integration.JavaMonitorAction
All Implemented Interfaces:
EventNotifier

public class JavaMonitorAction
extends MonitorAction


Field Summary
 
Fields inherited from class org.eclipse.jetty.monitor.jmx.MonitorAction
DEFAULT_POLL_INTERVAL
 
Constructor Summary
JavaMonitorAction(EventNotifier notifier, String url, String uuid, String appid, long pollInterval)
           
 
Method Summary
 void execute(EventTrigger trigger, EventState<?> state, long timestamp)
          This method will be called to allow subclass to execute the desired action in response to the event.
 Integer getHttpPort()
           
 
Methods inherited from class org.eclipse.jetty.monitor.jmx.MonitorAction
doExecute, getID, getPollDelay, getPollInterval, getTrigger
 
Methods inherited from class org.eclipse.jetty.monitor.jmx.NotifierGroup
addNotifier, addNotifiers, getNotifiers, notify, removeNotifier, removeNotifiers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMonitorAction

public JavaMonitorAction(EventNotifier notifier,
                         String url,
                         String uuid,
                         String appid,
                         long pollInterval)
                  throws Exception
Parameters:
notifier -
pollInterval -
Throws:
Exception
MalformedObjectNameException
Method Detail

execute

public void execute(EventTrigger trigger,
                    EventState<?> state,
                    long timestamp)
Description copied from class: MonitorAction
This method will be called to allow subclass to execute the desired action in response to the event.

Specified by:
execute in class MonitorAction
Parameters:
trigger - event trigger associated with this monitor action
state - event state associated with current invocation of event trigger
timestamp - time stamp of the current invocation of event trigger
See Also:
MonitorAction.execute(org.eclipse.jetty.monitor.jmx.EventTrigger, org.eclipse.jetty.monitor.jmx.EventState, long)

getHttpPort

public Integer getHttpPort()


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