public class AttrEventTrigger<TYPE extends Comparable<TYPE>> extends EventTrigger
| Modifier and Type | Field and Description |
|---|---|
protected String |
_attributeName |
protected String |
_objectName |
protected Map<Long,EventState<TYPE>> |
_states |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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]".
|
getIDprotected 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 polledMalformedObjectNameExceptionIllegalArgumentExceptionpublic AttrEventTrigger(ObjectName nameObject, String attributeName) throws IllegalArgumentException
nameObject - object name of an MBean to be polledattributeName - name of an MBean attribute to be polledIllegalArgumentExceptionpublic final boolean match(long timestamp)
throws Exception
match in class EventTriggerExceptionEventTrigger.match(long)public boolean match(Comparable<TYPE> value)
public final EventState<TYPE> getState(long timestamp)
getState in class EventTriggertimestamp - time stamp associated with invocationEventTrigger.getState(long)public String toString()
toString in class ObjectObject.toString()protected String getNameString()
protected boolean getSaveAll()
protected TYPE getValue(CompositeData compValue, String fieldName)
Copyright © 1995-2015 Webtide. All Rights Reserved.