org.eclipse.jetty.monitor.triggers
Class GreaterThanAttrEventTrigger<TYPE extends Comparable<TYPE>>
java.lang.Object
org.eclipse.jetty.monitor.jmx.EventTrigger
org.eclipse.jetty.monitor.triggers.AttrEventTrigger<TYPE>
org.eclipse.jetty.monitor.triggers.GreaterThanAttrEventTrigger<TYPE>
public class GreaterThanAttrEventTrigger<TYPE extends Comparable<TYPE>>
- extends AttrEventTrigger<TYPE>
GreaterThanAttrEventTrigger
Event trigger that polls a value of an MXBean attribute and
checks if it is greater than specified min value.
Constructor Summary |
GreaterThanAttrEventTrigger(String objectName,
String attributeName,
TYPE min)
Construct event trigger and specify the MXBean attribute
that will be polled by this event trigger as well as min
value of the attribute. |
Method Summary |
boolean |
match(Comparable<TYPE> value)
Compare the value of the MXBean attribute being polling
to check if it is greater than the min value. |
String |
toString()
Returns the string representation of this event trigger
in the format "min
|
_min
protected final TYPE extends Comparable<TYPE> _min
GreaterThanAttrEventTrigger
public GreaterThanAttrEventTrigger(String objectName,
String attributeName,
TYPE min)
throws MalformedObjectNameException,
IllegalArgumentException
- Construct event trigger and specify the MXBean attribute
that will be polled by this event trigger as well as min
value of the attribute.
- Parameters:
objectName
- object name of an MBean to be polledattributeName
- name of an MBean attribute to be polledmin
- minimum value of the attribute
- Throws:
MalformedObjectNameException
IllegalArgumentException
match
public boolean match(Comparable<TYPE> value)
- Compare the value of the MXBean attribute being polling
to check if it is greater than the min value.
- Overrides:
match
in class AttrEventTrigger<TYPE extends Comparable<TYPE>>
- See Also:
AttrEventTrigger.match(java.lang.Comparable)
toString
public String toString()
- Returns the string representation of this event trigger
in the format "min
- Overrides:
toString
in class AttrEventTrigger<TYPE extends Comparable<TYPE>>
- Returns:
- string representation of the event trigger
- See Also:
Object.toString()
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.