org.eclipse.jetty.monitor.triggers
public class LessThanAttrEventTrigger<TYPE extends java.lang.Comparable<TYPE>> extends AttrEventTrigger<TYPE>
Modifier and Type | Field and Description |
---|---|
protected TYPE |
_max |
_attributeName, _objectName, _states
Constructor and Description |
---|
LessThanAttrEventTrigger(java.lang.String objectName,
java.lang.String attributeName,
TYPE max)
Construct event trigger and specify the MXBean attribute
that will be polled by this event trigger as well as max
value of the attribute.
|
Modifier and Type | Method and Description |
---|---|
boolean |
match(java.lang.Comparable<TYPE> value)
Compare the value of the MXBean attribute being polling
to check if it is less than the min value.
|
java.lang.String |
toString()
Returns the string representation of this event trigger
in the format "name |
getNameString, getSaveAll, getState, getValue, match
getID
public LessThanAttrEventTrigger(java.lang.String objectName, java.lang.String attributeName, TYPE max) throws javax.management.MalformedObjectNameException, java.lang.IllegalArgumentException
objectName
- object name of an MBean to be polledattributeName
- name of an MBean attribute to be polledmax
- maximum value of the attributejavax.management.MalformedObjectNameException
java.lang.IllegalArgumentException
public boolean match(java.lang.Comparable<TYPE> value)
match
in class AttrEventTrigger<TYPE extends java.lang.Comparable<TYPE>>
AttrEventTrigger.match(java.lang.Comparable)
public java.lang.String toString()
toString
in class AttrEventTrigger<TYPE extends java.lang.Comparable<TYPE>>
Object.toString()
Copyright © 2016. All Rights Reserved.