org.opennms.netmgt.config.threshd
Class Basethresholddef

java.lang.Object
  extended by org.opennms.netmgt.config.threshd.Basethresholddef
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Expression, Threshold

public class Basethresholddef
extends java.lang.Object
implements java.io.Serializable

Class Basethresholddef.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Basethresholddef()
           
 
Method Summary
 void deleteRearm()
          Method deleteRearm
 void deleteTrigger()
          Method deleteTrigger
 void deleteValue()
          Method deleteValue
 java.lang.String getDsLabel()
          Returns the value of field 'dsLabel'.
 java.lang.String getDsType()
          Returns the value of field 'dsType'.
 double getRearm()
          Returns the value of field 'rearm'.
 java.lang.String getRearmedUEI()
          Returns the value of field 'rearmedUEI'.
 int getTrigger()
          Returns the value of field 'trigger'.
 java.lang.String getTriggeredUEI()
          Returns the value of field 'triggeredUEI'.
 java.lang.String getType()
          Returns the value of field 'type'.
 double getValue()
          Returns the value of field 'value'.
 boolean hasRearm()
          Method hasRearm
 boolean hasTrigger()
          Method hasTrigger
 boolean hasValue()
          Method hasValue
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setDsLabel(java.lang.String dsLabel)
          Sets the value of field 'dsLabel'.
 void setDsType(java.lang.String dsType)
          Sets the value of field 'dsType'.
 void setRearm(double rearm)
          Sets the value of field 'rearm'.
 void setRearmedUEI(java.lang.String rearmedUEI)
          Sets the value of field 'rearmedUEI'.
 void setTrigger(int trigger)
          Sets the value of field 'trigger'.
 void setTriggeredUEI(java.lang.String triggeredUEI)
          Sets the value of field 'triggeredUEI'.
 void setType(java.lang.String type)
          Sets the value of field 'type'.
 void setValue(double value)
          Sets the value of field 'value'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Basethresholddef

public Basethresholddef()
Method Detail

deleteRearm

public void deleteRearm()
Method deleteRearm


deleteTrigger

public void deleteTrigger()
Method deleteTrigger


deleteValue

public void deleteValue()
Method deleteValue


getDsLabel

public java.lang.String getDsLabel()
Returns the value of field 'dsLabel'. The field 'dsLabel' has the following description: Value to retrieve from strings.properties to label this datasource.

Returns:
String

getDsType

public java.lang.String getDsType()
Returns the value of field 'dsType'. The field 'dsType' has the following description: RRD datasource type. "node" indicates a node level datasource. "if" indicates an interface level datasource.

Returns:
String

getRearm

public double getRearm()
Returns the value of field 'rearm'. The field 'rearm' has the following description: Rearm value. Identifies the value that the datasource must fall below, in the case of a "high" threshold or rise above, in the case of a "low" threshold, before the threshold will rearm, and once again be eligible to generate an event.

Returns:
double

getRearmedUEI

public java.lang.String getRearmedUEI()
Returns the value of field 'rearmedUEI'. The field 'rearmedUEI' has the following description: The UEI to send when this threshold is re-armed. If not specified, defaults to standard threshold UEIs

Returns:
String

getTrigger

public int getTrigger()
Returns the value of field 'trigger'. The field 'trigger' has the following description: Trigger value. Identifies the number of consecutive polls that the datasource value must exceed the defined threshold value before a threshold event is generated.

Returns:
int

getTriggeredUEI

public java.lang.String getTriggeredUEI()
Returns the value of field 'triggeredUEI'. The field 'triggeredUEI' has the following description: The UEI to send when this threshold is triggered. If not specified, defaults to standard threshold UEIs

Returns:
String

getType

public java.lang.String getType()
Returns the value of field 'type'. The field 'type' has the following description: Threshold type. If "high", a 'highThresholdExceeded' event will be generated. If "low", a 'lowThresholdExceeded' event.

Returns:
String

getValue

public double getValue()
Returns the value of field 'value'. The field 'value' has the following description: Threshold value. If the datasource value rises above this value, in the case of a "high" threshold, or drops below this value, in the case of a "low" threshold the threshold is considered to have been exceeded and the exceeded count will be incremented. Any time that the datasource value drops below this value, in the case of a "high" threshold, or rises above this value, in the case of a "low" threshold the exceeded count is reset back to zero. Whenever the exceeded count reaches the trigger value then a threshold event is generated.

Returns:
double

hasRearm

public boolean hasRearm()
Method hasRearm

Returns:
boolean

hasTrigger

public boolean hasTrigger()
Method hasTrigger

Returns:
boolean

hasValue

public boolean hasValue()
Method hasValue

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setDsLabel

public void setDsLabel(java.lang.String dsLabel)
Sets the value of field 'dsLabel'. The field 'dsLabel' has the following description: Value to retrieve from strings.properties to label this datasource.

Parameters:
dsLabel - the value of field 'dsLabel'.

setDsType

public void setDsType(java.lang.String dsType)
Sets the value of field 'dsType'. The field 'dsType' has the following description: RRD datasource type. "node" indicates a node level datasource. "if" indicates an interface level datasource.

Parameters:
dsType - the value of field 'dsType'.

setRearm

public void setRearm(double rearm)
Sets the value of field 'rearm'. The field 'rearm' has the following description: Rearm value. Identifies the value that the datasource must fall below, in the case of a "high" threshold or rise above, in the case of a "low" threshold, before the threshold will rearm, and once again be eligible to generate an event.

Parameters:
rearm - the value of field 'rearm'.

setRearmedUEI

public void setRearmedUEI(java.lang.String rearmedUEI)
Sets the value of field 'rearmedUEI'. The field 'rearmedUEI' has the following description: The UEI to send when this threshold is re-armed. If not specified, defaults to standard threshold UEIs

Parameters:
rearmedUEI - the value of field 'rearmedUEI'.

setTrigger

public void setTrigger(int trigger)
Sets the value of field 'trigger'. The field 'trigger' has the following description: Trigger value. Identifies the number of consecutive polls that the datasource value must exceed the defined threshold value before a threshold event is generated.

Parameters:
trigger - the value of field 'trigger'.

setTriggeredUEI

public void setTriggeredUEI(java.lang.String triggeredUEI)
Sets the value of field 'triggeredUEI'. The field 'triggeredUEI' has the following description: The UEI to send when this threshold is triggered. If not specified, defaults to standard threshold UEIs

Parameters:
triggeredUEI - the value of field 'triggeredUEI'.

setType

public void setType(java.lang.String type)
Sets the value of field 'type'. The field 'type' has the following description: Threshold type. If "high", a 'highThresholdExceeded' event will be generated. If "low", a 'lowThresholdExceeded' event.

Parameters:
type - the value of field 'type'.

setValue

public void setValue(double value)
Sets the value of field 'value'. The field 'value' has the following description: Threshold value. If the datasource value rises above this value, in the case of a "high" threshold, or drops below this value, in the case of a "low" threshold the threshold is considered to have been exceeded and the exceeded count will be incremented. Any time that the datasource value drops below this value, in the case of a "high" threshold, or rises above this value, in the case of a "low" threshold the exceeded count is reset back to zero. Whenever the exceeded count reaches the trigger value then a threshold event is generated.

Parameters:
value - the value of field 'value'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.