public abstract class MonitorAction extends NotifierGroup
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_POLL_INTERVAL |
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
addNotifier, addNotifiers, getNotifiers, notify, removeNotifier, removeNotifiers
public static final int DEFAULT_POLL_INTERVAL
public MonitorAction(EventTrigger trigger) throws InvalidParameterException
trigger
- event trigger to be associated with this actionInvalidParameterException
public MonitorAction(EventTrigger trigger, EventNotifier notifier) throws InvalidParameterException
trigger
- event trigger to be associated with this actionnotifier
- event notifier to be associated with this actionInvalidParameterException
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 serverInvalidParameterException
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 serverInvalidParameterException
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 triggerCopyright © 1995-2015 Webtide. All Rights Reserved.