|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.monitor.jmx.EventTrigger
org.eclipse.jetty.monitor.triggers.AttrEventTrigger<TYPE>
public class AttrEventTrigger<TYPE extends Comparable<TYPE>>
AttrEventTrigger Event trigger that polls a value of an MXBean attribute and matches every invocation of this trigger. It can be used to send notifications of the value of an attribute of the MXBean being polled at a certain interval, or as a base class for the event triggers that match the value of an attribute of the MXBean being polled against some specified criteria.
| 字段摘要 | |
|---|---|
protected String |
_attributeName
|
protected String |
_objectName
|
protected Map<Long,EventState<TYPE>> |
_states
|
| 构造方法摘要 | |
|---|---|
AttrEventTrigger(ObjectName nameObject,
String attributeName)
Construct event trigger and specify the MXBean attribute that will be polled by this event trigger. |
|
AttrEventTrigger(String objectName,
String attributeName)
Construct event trigger and specify the MXBean attribute that will be polled by this event trigger. |
|
| 方法摘要 | |
|---|---|
protected String |
getNameString()
Returns the string representation of this event trigger in the format "[object_name:attribute_name]". |
protected boolean |
getSaveAll()
|
EventState<TYPE> |
getState(long timestamp)
Retrieve the event state associated with specified invocation of the event trigger match method. |
protected TYPE |
getValue(CompositeData compValue,
String fieldName)
|
boolean |
match(Comparable<TYPE> value)
Verify if the event trigger conditions are in the appropriate state for an event to be triggered. |
boolean |
match(long timestamp)
Verify if the event trigger conditions are in the appropriate state for an event to be triggered. |
String |
toString()
Returns the string representation of this event trigger in the format "[object_name:attribute_name]". |
| 从类 org.eclipse.jetty.monitor.jmx.EventTrigger 继承的方法 |
|---|
getID |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected final String _objectName
protected final String _attributeName
protected Map<Long,EventState<TYPE extends Comparable<TYPE>>> _states
| 构造方法详细信息 |
|---|
public AttrEventTrigger(String objectName,
String attributeName)
throws MalformedObjectNameException,
IllegalArgumentException
objectName - object name of an MBean to be polledattributeName - name of an MBean attribute to be polled
MalformedObjectNameException
IllegalArgumentException
public AttrEventTrigger(ObjectName nameObject,
String attributeName)
throws IllegalArgumentException
nameObject - object name of an MBean to be polledattributeName - name of an MBean attribute to be polled
IllegalArgumentException| 方法详细信息 |
|---|
public final boolean match(long timestamp)
throws Exception
EventTrigger 中的 matchExceptionEventTrigger.match(long)public boolean match(Comparable<TYPE> value)
public final EventState<TYPE> getState(long timestamp)
EventTrigger 中的 getStatetimestamp - time stamp associated with invocation
EventTrigger.getState(long)public String toString()
Object 中的 toStringObject.toString()protected String getNameString()
protected boolean getSaveAll()
protected TYPE getValue(CompositeData compValue,
String fieldName)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||