public class ThresholdValues extends Object implements Serializable, Cloneable
Constructor and Description |
---|
ThresholdValues()
Create a new ThresholdValues
|
ThresholdValues(double[] range)
Create a new ThresholdValues
|
ThresholdValues(double lowThreshold,
double highThreshold)
Create a new ThresholdValues
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
double |
getCurrentHighThreshold()
Getter for property currentHighThreshold.
|
double |
getCurrentLowThreshold()
Getter for property currentLowThreshold.
|
double |
getHighThreshold()
Getter for property highThreshold.
|
double |
getLowThreshold()
Getter for property lowThreshold.
|
long |
getThresholdBreachedCount()
Gets the count of breached thresholds
|
long |
getThresholdClearedCount()
Gets the count of cleared thresholds
|
void |
incThresholdBreachedCount()
Increments the count of breached thresholds
|
void |
incThresholdClearedCount()
Increments the count of cleared thresholds
|
void |
resetHighThreshold()
Reset the currentHighThreshold to tbe original highThreshold value
|
void |
resetLowThreshold()
Reset the currentLowThreshold to tbe original lowThreshold value
|
void |
setCurrentHighThreshold(double threshold)
Setter for property currentHighThreshold.
|
void |
setCurrentLowThreshold(double threshold)
Setter for property currentHighThreshold.
|
String |
toString() |
public ThresholdValues()
public ThresholdValues(double[] range)
range
- Array of double values indicating the range of acceptable lower and upper
thresholdspublic ThresholdValues(double lowThreshold, double highThreshold)
lowThreshold
- The low thresholdhighThreshold
- The high threshold valuepublic double getHighThreshold()
public double getLowThreshold()
public double getCurrentHighThreshold()
public void setCurrentHighThreshold(double threshold)
threshold
- New value of property currentHighThreshold.public double getCurrentLowThreshold()
public void setCurrentLowThreshold(double threshold)
threshold
- New value of property currentHighThreshold.public void resetLowThreshold()
public void resetHighThreshold()
public void incThresholdBreachedCount()
public long getThresholdBreachedCount()
public void incThresholdClearedCount()
public long getThresholdClearedCount()
Copyright © GigaSpaces.