|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.perf4j.helpers.AcceptableRangeConfiguration
public class AcceptableRangeConfiguration
Instances of this class are used by the StatisticsExposingMBean to determine if JMX notifications should be sent if timing statistics fall outside a specified acceptable range.
| Field Summary | |
|---|---|
protected static Pattern |
CONFIG_STRING_PATTERN
|
| Constructor Summary | |
|---|---|
AcceptableRangeConfiguration()
Default constructor allows the attributeName, minValue and maxValue properties to be set later with the setter methods. |
|
AcceptableRangeConfiguration(String configString)
Parses a configuration string to get the attributeName, minValue and maxValue properties. |
|
AcceptableRangeConfiguration(String attributeName,
double minValue,
double maxValue)
Creates a new AcceptableRangeConfiguration with the specified attributeName, min and max values. |
|
| Method Summary | |
|---|---|
AcceptableRangeConfiguration |
clone()
|
boolean |
equals(Object o)
|
String |
getAttributeName()
|
double |
getMaxValue()
|
double |
getMinValue()
|
int |
hashCode()
|
boolean |
isInRange(double value)
Determines whether or not the specified value is within the acceptable range. |
void |
setAttributeName(String attributeName)
|
void |
setMaxValue(double maxValue)
|
void |
setMinValue(double minValue)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final Pattern CONFIG_STRING_PATTERN
| Constructor Detail |
|---|
public AcceptableRangeConfiguration()
public AcceptableRangeConfiguration(String configString)
configString - The configString to parse
IllegalArgumentException - Thrown if the configString did not use the acceptable format.
public AcceptableRangeConfiguration(String attributeName,
double minValue,
double maxValue)
attributeName - The name of the MBean attribute that is being constrained.minValue - The minimum acceptable valuemaxValue - The maximum acceptable value| Method Detail |
|---|
public String getAttributeName()
public void setAttributeName(String attributeName)
public double getMinValue()
public void setMinValue(double minValue)
public double getMaxValue()
public void setMaxValue(double maxValue)
public boolean isInRange(double value)
value - The value to check
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic AcceptableRangeConfiguration clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||