public class EqualToAttrEventTrigger<TYPE extends Comparable<TYPE>> extends AttrEventTrigger<TYPE>
Modifier and Type | Field and Description |
---|---|
protected TYPE |
_value |
_attributeName, _objectName, _states
Constructor and Description |
---|
EqualToAttrEventTrigger(String objectName,
String attributeName,
TYPE value)
Construct event trigger and specify the MXBean attribute
that will be polled by this event trigger as well as the
target value of the attribute.
|
Modifier and Type | Method and Description |
---|---|
boolean |
match(Comparable<TYPE> value)
Compare the value of the MXBean attribute being polling
to check if it is equal to the specified value.
|
String |
toString()
Returns the string representation of this event trigger
in the format "name=value".
|
getNameString, getSaveAll, getState, getValue, match
getID
protected final TYPE extends Comparable<TYPE> _value
public EqualToAttrEventTrigger(String objectName, String attributeName, TYPE value) throws MalformedObjectNameException, IllegalArgumentException
objectName
- object name of an MBean to be polledattributeName
- name of an MBean attribute to be polledvalue
- target value of the attributeMalformedObjectNameException
IllegalArgumentException
public boolean match(Comparable<TYPE> value)
match
in class AttrEventTrigger<TYPE extends Comparable<TYPE>>
public String toString()
toString
in class AttrEventTrigger<TYPE extends Comparable<TYPE>>
Object.toString()
Copyright © 1995-2015 Webtide. All Rights Reserved.