org.opennms.netmgt.config.threshd
Class Group

java.lang.Object
  extended by org.opennms.netmgt.config.threshd.Group
All Implemented Interfaces:
java.io.Serializable

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

Grouping of related threshold definitions

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

Constructor Summary
Group()
           
 
Method Summary
 void addExpression(Expression vExpression)
          Method addExpression
 void addExpression(int index, Expression vExpression)
          Method addExpression
 void addThreshold(int index, Threshold vThreshold)
          Method addThreshold
 void addThreshold(Threshold vThreshold)
          Method addThreshold
 void clearExpression()
          Method clearExpression
 void clearThreshold()
          Method clearThreshold
 java.util.Enumeration enumerateExpression()
          Method enumerateExpression
 java.util.Enumeration enumerateThreshold()
          Method enumerateThreshold
 Expression[] getExpression()
          Method getExpression
 Expression getExpression(int index)
          Method getExpression
 java.util.ArrayList getExpressionCollection()
          Method getExpressionCollection Returns a reference to 'expression'.
 int getExpressionCount()
          Method getExpressionCount
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getRrdRepository()
          Returns the value of field 'rrdRepository'.
 Threshold[] getThreshold()
          Method getThreshold
 Threshold getThreshold(int index)
          Method getThreshold
 java.util.ArrayList getThresholdCollection()
          Method getThresholdCollection Returns a reference to 'threshold'.
 int getThresholdCount()
          Method getThresholdCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeExpression(Expression vExpression)
          Method removeExpression
 boolean removeThreshold(Threshold vThreshold)
          Method removeThreshold
 void setExpression(java.util.ArrayList expressionCollection)
          Method setExpression Sets the value of 'expression' by copying the given ArrayList.
 void setExpression(Expression[] expressionArray)
          Method setExpression
 void setExpression(int index, Expression vExpression)
          Method setExpression
 void setExpressionCollection(java.util.ArrayList expressionCollection)
          Method setExpressionCollection Sets the value of 'expression' by setting it to the given ArrayList.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setRrdRepository(java.lang.String rrdRepository)
          Sets the value of field 'rrdRepository'.
 void setThreshold(java.util.ArrayList thresholdCollection)
          Method setThreshold Sets the value of 'threshold' by copying the given ArrayList.
 void setThreshold(int index, Threshold vThreshold)
          Method setThreshold
 void setThreshold(Threshold[] thresholdArray)
          Method setThreshold
 void setThresholdCollection(java.util.ArrayList thresholdCollection)
          Method setThresholdCollection Sets the value of 'threshold' by setting it to the given ArrayList.
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

Group

public Group()
Method Detail

addExpression

public void addExpression(Expression vExpression)
                   throws java.lang.IndexOutOfBoundsException
Method addExpression

Parameters:
vExpression -
Throws:
java.lang.IndexOutOfBoundsException

addExpression

public void addExpression(int index,
                          Expression vExpression)
                   throws java.lang.IndexOutOfBoundsException
Method addExpression

Parameters:
index -
vExpression -
Throws:
java.lang.IndexOutOfBoundsException

addThreshold

public void addThreshold(Threshold vThreshold)
                  throws java.lang.IndexOutOfBoundsException
Method addThreshold

Parameters:
vThreshold -
Throws:
java.lang.IndexOutOfBoundsException

addThreshold

public void addThreshold(int index,
                         Threshold vThreshold)
                  throws java.lang.IndexOutOfBoundsException
Method addThreshold

Parameters:
index -
vThreshold -
Throws:
java.lang.IndexOutOfBoundsException

clearExpression

public void clearExpression()
Method clearExpression


clearThreshold

public void clearThreshold()
Method clearThreshold


enumerateExpression

public java.util.Enumeration enumerateExpression()
Method enumerateExpression

Returns:
Enumeration

enumerateThreshold

public java.util.Enumeration enumerateThreshold()
Method enumerateThreshold

Returns:
Enumeration

getExpression

public Expression getExpression(int index)
                         throws java.lang.IndexOutOfBoundsException
Method getExpression

Parameters:
index -
Returns:
Expression
Throws:
java.lang.IndexOutOfBoundsException

getExpression

public Expression[] getExpression()
Method getExpression

Returns:
Expression

getExpressionCollection

public java.util.ArrayList getExpressionCollection()
Method getExpressionCollection Returns a reference to 'expression'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getExpressionCount

public int getExpressionCount()
Method getExpressionCount

Returns:
int

getName

public java.lang.String getName()
Returns the value of field 'name'. The field 'name' has the following description: Group name

Returns:
String

getRrdRepository

public java.lang.String getRrdRepository()
Returns the value of field 'rrdRepository'. The field 'rrdRepository' has the following description: Full path to the RRD repository where the data is stored

Returns:
String

getThreshold

public Threshold getThreshold(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getThreshold

Parameters:
index -
Returns:
Threshold
Throws:
java.lang.IndexOutOfBoundsException

getThreshold

public Threshold[] getThreshold()
Method getThreshold

Returns:
Threshold

getThresholdCollection

public java.util.ArrayList getThresholdCollection()
Method getThresholdCollection Returns a reference to 'threshold'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getThresholdCount

public int getThresholdCount()
Method getThresholdCount

Returns:
int

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

removeExpression

public boolean removeExpression(Expression vExpression)
Method removeExpression

Parameters:
vExpression -
Returns:
boolean

removeThreshold

public boolean removeThreshold(Threshold vThreshold)
Method removeThreshold

Parameters:
vThreshold -
Returns:
boolean

setExpression

public void setExpression(int index,
                          Expression vExpression)
                   throws java.lang.IndexOutOfBoundsException
Method setExpression

Parameters:
index -
vExpression -
Throws:
java.lang.IndexOutOfBoundsException

setExpression

public void setExpression(Expression[] expressionArray)
Method setExpression

Parameters:
expressionArray -

setExpression

public void setExpression(java.util.ArrayList expressionCollection)
Method setExpression Sets the value of 'expression' by copying the given ArrayList.

Parameters:
expressionCollection - the Vector to copy.

setExpressionCollection

public void setExpressionCollection(java.util.ArrayList expressionCollection)
Method setExpressionCollection Sets the value of 'expression' by setting it to the given ArrayList. No type checking is performed.

Parameters:
expressionCollection - the ArrayList to copy.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'. The field 'name' has the following description: Group name

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

setRrdRepository

public void setRrdRepository(java.lang.String rrdRepository)
Sets the value of field 'rrdRepository'. The field 'rrdRepository' has the following description: Full path to the RRD repository where the data is stored

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

setThreshold

public void setThreshold(int index,
                         Threshold vThreshold)
                  throws java.lang.IndexOutOfBoundsException
Method setThreshold

Parameters:
index -
vThreshold -
Throws:
java.lang.IndexOutOfBoundsException

setThreshold

public void setThreshold(Threshold[] thresholdArray)
Method setThreshold

Parameters:
thresholdArray -

setThreshold

public void setThreshold(java.util.ArrayList thresholdCollection)
Method setThreshold Sets the value of 'threshold' by copying the given ArrayList.

Parameters:
thresholdCollection - the Vector to copy.

setThresholdCollection

public void setThresholdCollection(java.util.ArrayList thresholdCollection)
Method setThresholdCollection Sets the value of 'threshold' by setting it to the given ArrayList. No type checking is performed.

Parameters:
thresholdCollection - the ArrayList to copy.

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.