org.opennms.netmgt.config.outage
Class OutageConfiguration

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

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

Top-level element for the outage-configuration.xml configuration file.

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

Constructor Summary
OutageConfiguration()
           
 
Method Summary
 void deleteWriters()
          Method deleteWriters
 java.lang.String getDeletePropagation()
          Returns the value of field 'deletePropagation'.
 java.lang.String getGetNextOutageID()
          Returns the value of field 'getNextOutageID'.
 int getWriters()
          Returns the value of field 'writers'.
 boolean hasWriters()
          Method hasWriters
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setDeletePropagation(java.lang.String deletePropagation)
          Sets the value of field 'deletePropagation'.
 void setGetNextOutageID(java.lang.String getNextOutageID)
          Sets the value of field 'getNextOutageID'.
 void setWriters(int writers)
          Sets the value of field 'writers'.
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

OutageConfiguration

public OutageConfiguration()
Method Detail

deleteWriters

public void deleteWriters()
Method deleteWriters


getDeletePropagation

public java.lang.String getDeletePropagation()
Returns the value of field 'deletePropagation'. The field 'deletePropagation' has the following description: Flag which indicates if a delete service event should propagate to a delete interface or delete node event, if approciate.

Returns:
String

getGetNextOutageID

public java.lang.String getGetNextOutageID()
Returns the value of field 'getNextOutageID'. The field 'getNextOutageID' has the following description: SQL query to get next value of the 'outageNxtId' database sequence to make the access database independant.

Returns:
String

getWriters

public int getWriters()
Returns the value of field 'writers'. The field 'writers' has the following description: Maximum number of threads reading the events and updating the database.

Returns:
int

hasWriters

public boolean hasWriters()
Method hasWriters

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

setDeletePropagation

public void setDeletePropagation(java.lang.String deletePropagation)
Sets the value of field 'deletePropagation'. The field 'deletePropagation' has the following description: Flag which indicates if a delete service event should propagate to a delete interface or delete node event, if approciate.

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

setGetNextOutageID

public void setGetNextOutageID(java.lang.String getNextOutageID)
Sets the value of field 'getNextOutageID'. The field 'getNextOutageID' has the following description: SQL query to get next value of the 'outageNxtId' database sequence to make the access database independant.

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

setWriters

public void setWriters(int writers)
Sets the value of field 'writers'. The field 'writers' has the following description: Maximum number of threads reading the events and updating the database.

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

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.