public class AttrEventTrigger<TYPE extends java.lang.Comparable<TYPE>> extends EventTrigger
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_attributeName |
protected java.lang.String |
_objectName |
protected java.util.Map<java.lang.Long,EventState<TYPE>> |
_states |
Constructor and Description |
---|
AttrEventTrigger(javax.management.ObjectName nameObject,
java.lang.String attributeName)
Construct event trigger and specify the MXBean attribute
that will be polled by this event trigger.
|
AttrEventTrigger(java.lang.String objectName,
java.lang.String attributeName)
Construct event trigger and specify the MXBean attribute
that will be polled by this event trigger.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.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(javax.management.openmbean.CompositeData compValue,
java.lang.String fieldName) |
boolean |
match(java.lang.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.
|
java.lang.String |
toString()
Returns the string representation of this event trigger
in the format "[object_name:attribute_name]".
|
getID
protected final java.lang.String _objectName
protected final java.lang.String _attributeName
protected java.util.Map<java.lang.Long,EventState<TYPE extends java.lang.Comparable<TYPE>>> _states
public AttrEventTrigger(java.lang.String objectName, java.lang.String attributeName) throws javax.management.MalformedObjectNameException, java.lang.IllegalArgumentException
objectName
- object name of an MBean to be polledattributeName
- name of an MBean attribute to be polledjavax.management.MalformedObjectNameException
java.lang.IllegalArgumentException
public AttrEventTrigger(javax.management.ObjectName nameObject, java.lang.String attributeName) throws java.lang.IllegalArgumentException
nameObject
- object name of an MBean to be polledattributeName
- name of an MBean attribute to be polledjava.lang.IllegalArgumentException
public final boolean match(long timestamp) throws java.lang.Exception
match
in class EventTrigger
java.lang.Exception
EventTrigger.match(long)
public boolean match(java.lang.Comparable<TYPE> value)
public final EventState<TYPE> getState(long timestamp)
getState
in class EventTrigger
timestamp
- time stamp associated with invocationEventTrigger.getState(long)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
protected java.lang.String getNameString()
protected boolean getSaveAll()
protected TYPE getValue(javax.management.openmbean.CompositeData compValue, java.lang.String fieldName)
Copyright © 2013. All Rights Reserved.