org.opennms.netmgt.config.archiver.events
Class EventsArchiverConfiguration

java.lang.Object
  extended by org.opennms.netmgt.config.archiver.events.EventsArchiverConfiguration
All Implemented Interfaces:
java.io.Serializable

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

The top-level element for the events-archiver-configuration.xml configuration file.

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

Constructor Summary
EventsArchiverConfiguration()
           
 
Method Summary
 java.lang.String getArchiveAge()
          Returns the value of field 'archiveAge'.
 java.lang.String getSeparator()
          Returns the value of field 'separator'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setArchiveAge(java.lang.String archiveAge)
          Sets the value of field 'archiveAge'.
 void setSeparator(java.lang.String separator)
          Sets the value of field 'separator'.
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

EventsArchiverConfiguration

public EventsArchiverConfiguration()
Method Detail

getArchiveAge

public java.lang.String getArchiveAge()
Returns the value of field 'archiveAge'. The field 'archiveAge' has the following description: Archive age. Events older than current time minus this time are removed (is typically in days, hours, minutes although seconds, milliseconds and microseconds are also supported).

Returns:
String

getSeparator

public java.lang.String getSeparator()
Returns the value of field 'separator'. The field 'separator' has the following description: Separator used in between event table column values when an event is written to the archive file.

Returns:
String

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

setArchiveAge

public void setArchiveAge(java.lang.String archiveAge)
Sets the value of field 'archiveAge'. The field 'archiveAge' has the following description: Archive age. Events older than current time minus this time are removed (is typically in days, hours, minutes although seconds, milliseconds and microseconds are also supported).

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

setSeparator

public void setSeparator(java.lang.String separator)
Sets the value of field 'separator'. The field 'separator' has the following description: Separator used in between event table column values when an event is written to the archive file.

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

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.