org.eclipse.jetty.monitor.triggers
类 GreaterThanOrEqualToAttrEventTrigger<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.GreaterThanOrEqualToAttrEventTrigger<TYPE>
public class GreaterThanOrEqualToAttrEventTrigger<TYPE extends Comparable<TYPE>>
- extends AttrEventTrigger<TYPE>
GreaterThanOrEqualToAttrEventTrigger
Event trigger that polls a value of an MXBean attribute and
checks if it is greater than or equal to specified min value.
|
方法摘要 |
boolean |
match(Comparable<TYPE> value)
Compare the value of the MXBean attribute being polling
to check if it is greater than or equal to the min value. |
String |
toString()
Returns the string representation of this event trigger
in the format "min<=name". |
_min
protected final TYPE extends Comparable<TYPE> _min
GreaterThanOrEqualToAttrEventTrigger
public GreaterThanOrEqualToAttrEventTrigger(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.
- 参数:
objectName - object name of an MBean to be polledattributeName - name of an MBean attribute to be polledmin - minimum value of the attribute
- 抛出:
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 or equal to the min value.
- 覆盖:
- 类
AttrEventTrigger<TYPE extends Comparable<TYPE>> 中的 match
- 另请参见:
AttrEventTrigger.match(java.lang.Comparable)
toString
public String toString()
- Returns the string representation of this event trigger
in the format "min<=name".
- 覆盖:
- 类
AttrEventTrigger<TYPE extends Comparable<TYPE>> 中的 toString
- 返回:
- string representation of the event trigger
- 另请参见:
Object.toString()
Copyright © 2013. All Rights Reserved.