|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.monitor.jmx.NotifierGroup org.eclipse.jetty.monitor.jmx.MonitorAction
public abstract class MonitorAction
MonitorAction Abstract base class for all MonitorAction implementations. Receives notification when an associated EventTrigger is matched.
Field Summary | |
---|---|
static int |
DEFAULT_POLL_INTERVAL
|
Constructor Summary | |
---|---|
MonitorAction(EventTrigger trigger)
Creates a new monitor action |
|
MonitorAction(EventTrigger trigger,
EventNotifier notifier)
Creates a new monitor action |
|
MonitorAction(EventTrigger trigger,
EventNotifier notifier,
long pollInterval)
Creates a new monitor action |
|
MonitorAction(EventTrigger trigger,
EventNotifier notifier,
long pollInterval,
long pollDelay)
Creates a new monitor action |
Method Summary | |
---|---|
void |
doExecute(long timestamp)
This method will be called when event trigger associated with this monitor action matches its conditions. |
abstract 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. |
String |
getID()
Retrieve the identification string of the monitor action |
long |
getPollDelay()
Retrieve the poll delay |
long |
getPollInterval()
Retrieve the poll interval |
EventTrigger |
getTrigger()
Retrieve the event trigger of the monitor action |
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 |
Field Detail |
---|
public static final int DEFAULT_POLL_INTERVAL
Constructor Detail |
---|
public MonitorAction(EventTrigger trigger) throws InvalidParameterException
trigger
- event trigger to be associated with this action
InvalidParameterException
public MonitorAction(EventTrigger trigger, EventNotifier notifier) throws InvalidParameterException
trigger
- event trigger to be associated with this actionnotifier
- event notifier to be associated with this action
InvalidParameterException
public MonitorAction(EventTrigger trigger, EventNotifier notifier, long pollInterval) throws InvalidParameterException
trigger
- event trigger to be associated with this actionnotifier
- event notifier to be associated with this actionpollInterval
- interval for polling of the JMX server
InvalidParameterException
public MonitorAction(EventTrigger trigger, EventNotifier notifier, long pollInterval, long pollDelay) throws InvalidParameterException
trigger
- event trigger to be associated with this actionnotifier
- event notifier to be associated with this actionpollInterval
- interval for polling of the JMX serverpollDelay
- delay before starting to poll the JMX server
InvalidParameterException
Method Detail |
---|
public final String getID()
public EventTrigger getTrigger()
public long getPollInterval()
public long getPollDelay()
public final void doExecute(long timestamp)
timestamp
- time stamp of the eventpublic abstract void execute(EventTrigger trigger, EventState<?> state, long timestamp)
trigger
- event trigger associated with this monitor actionstate
- event state associated with current invocation of event triggertimestamp
- time stamp of the current invocation of event trigger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |