|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.threshd.ThresholdEntity
Wraps the castor created org.opennms.netmgt.config.threshd.Threshold class and provides the ability to track threshold exceeded occurrences.
Field Summary | |
(package private) static int |
HIGH_AND_LOW_REARMED
|
(package private) static int |
HIGH_AND_LOW_TRIGGERED
|
(package private) static int |
HIGH_REARMED
|
(package private) static java.lang.String |
HIGH_THRESHOLD
|
(package private) static int |
HIGH_TRIGGERED
|
(package private) static int |
LOW_REARMED
|
(package private) static java.lang.String |
LOW_THRESHOLD
|
(package private) static int |
LOW_TRIGGERED
|
private boolean |
m_highArmed
Threshold armed flag This flag must be true before evaluate() will return true (indicating that the threshold has been triggered). |
private int |
m_highCount
Threshold exceeded count |
private Threshold |
m_highThreshold
Castor Threshold object containing threshold configuration data. |
private boolean |
m_lowArmed
|
private int |
m_lowCount
|
private Threshold |
m_lowThreshold
|
(package private) static int |
NONE_TRIGGERED
|
Constructor Summary | |
(package private) |
ThresholdEntity()
Constructor. |
Method Summary | |
java.lang.Object |
clone()
Returns a copy of this ThresholdEntity object. |
(package private) int |
evaluate(double dsValue)
Evaluates the threshold in light of the provided datasource value. |
(package private) java.lang.String |
getDatasourceName()
Get datasource name |
(package private) java.lang.String |
getDatasourceType()
Get datasource type |
(package private) double |
getHighRearm()
Get high threshold re-arm |
(package private) Threshold |
getHighThreshold()
|
(package private) int |
getHighTrigger()
Get high threshold trigger |
(package private) double |
getHighValue()
Get high threshold value |
(package private) double |
getLowRearm()
Get low threshold re-arm |
(package private) Threshold |
getLowThreshold()
|
(package private) int |
getLowTrigger()
Get low threshold trigger |
(package private) double |
getLowValue()
Get low threshold value |
(package private) boolean |
hasHighThreshold()
|
(package private) boolean |
hasLowThreshold()
|
(package private) void |
setHighThreshold(Threshold threshold)
|
(package private) void |
setLowThreshold(Threshold threshold)
|
java.lang.String |
toString()
This method is responsible for returning a String object which represents the content of this ThresholdEntity. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final int NONE_TRIGGERED
static final int HIGH_TRIGGERED
static final int LOW_TRIGGERED
static final int HIGH_AND_LOW_TRIGGERED
static final int HIGH_REARMED
static final int LOW_REARMED
static final int HIGH_AND_LOW_REARMED
static final java.lang.String HIGH_THRESHOLD
static final java.lang.String LOW_THRESHOLD
private Threshold m_highThreshold
private Threshold m_lowThreshold
private int m_highCount
private int m_lowCount
private boolean m_highArmed
private boolean m_lowArmed
Constructor Detail |
ThresholdEntity()
Method Detail |
void setHighThreshold(Threshold threshold)
void setLowThreshold(Threshold threshold)
boolean hasHighThreshold()
boolean hasLowThreshold()
Threshold getHighThreshold()
Threshold getLowThreshold()
java.lang.String getDatasourceName()
java.lang.String getDatasourceType()
double getHighValue()
double getLowValue()
double getHighRearm()
double getLowRearm()
int getHighTrigger()
int getLowTrigger()
public java.lang.Object clone()
public java.lang.String toString()
int evaluate(double dsValue)
dsValue
- Current value of datasource
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |