org.eclipse.jetty.monitor.triggers
类 RangeAttrEventTrigger<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.RangeAttrEventTrigger<TYPE>

public class RangeAttrEventTrigger<TYPE extends Comparable<TYPE>>
extends AttrEventTrigger<TYPE>

RangeAttrEventTrigger Event trigger that polls a value of an MXBean attribute and checks if it is in a range from specified min value to specified max value.


字段摘要
protected  TYPE _max
           
protected  TYPE _min
           
 
从类 org.eclipse.jetty.monitor.triggers.AttrEventTrigger 继承的字段
_attributeName, _objectName, _states
 
构造方法摘要
RangeAttrEventTrigger(String objectName, String attributeName, TYPE min, TYPE max)
          Construct event trigger and specify the MXBean attribute that will be polled by this event trigger as well as min and max value of the attribute.
 
方法摘要
 boolean match(Comparable<TYPE> value)
          Compare the value of the MXBean attribute being polling to check if it is in a range from specified min value to specified max value.
 String toString()
          Returns the string representation of this event trigger in the format "min
 
从类 org.eclipse.jetty.monitor.triggers.AttrEventTrigger 继承的方法
getNameString, getSaveAll, getState, getValue, match
 
从类 org.eclipse.jetty.monitor.jmx.EventTrigger 继承的方法
getID
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

_min

protected final TYPE extends Comparable<TYPE> _min

_max

protected final TYPE extends Comparable<TYPE> _max
构造方法详细信息

RangeAttrEventTrigger

public RangeAttrEventTrigger(String objectName,
                             String attributeName,
                             TYPE min,
                             TYPE max)
                      throws MalformedObjectNameException,
                             IllegalArgumentException
Construct event trigger and specify the MXBean attribute that will be polled by this event trigger as well as min and max value of the attribute.

参数:
objectName - object name of an MBean to be polled
attributeName - name of an MBean attribute to be polled
min - minimum value of the attribute
max - maximum 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 in a range from specified min value to specified max 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
覆盖:
AttrEventTrigger<TYPE extends Comparable<TYPE>> 中的 toString
返回:
string representation of the event trigger
另请参见:
Object.toString()


Copyright © 2013. All Rights Reserved.