|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.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.
| 字段摘要 | |
|---|---|
static int |
DEFAULT_POLL_INTERVAL
|
| 构造方法摘要 | |
|---|---|
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 |
|
| 方法摘要 | |
|---|---|
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 |
| 从类 org.eclipse.jetty.monitor.jmx.NotifierGroup 继承的方法 |
|---|
addNotifier, addNotifiers, getNotifiers, notify, removeNotifier, removeNotifiers |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int DEFAULT_POLL_INTERVAL
| 构造方法详细信息 |
|---|
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| 方法详细信息 |
|---|
public final String getID()
public EventTrigger getTrigger()
public long getPollInterval()
public long getPollDelay()
public final void doExecute(long timestamp)
timestamp - time stamp of the event
public 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
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||