org.opennms.netmgt.config.eventd
Class EventdConfiguration

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

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

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

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

Constructor Summary
EventdConfiguration()
           
 
Method Summary
 void deleteReceivers()
          Method deleteReceivers
 void deleteSocketSoTimeoutPeriod()
          Method deleteSocketSoTimeoutPeriod
 void deleteTCPPort()
          Method deleteTCPPort
 void deleteUDPPort()
          Method deleteUDPPort
 java.lang.String getGetNextAlarmID()
          Returns the value of field 'getNextAlarmID'.
 java.lang.String getGetNextEventID()
          Returns the value of field 'getNextEventID'.
 int getReceivers()
          Returns the value of field 'receivers'.
 int getSocketSoTimeoutPeriod()
          Returns the value of field 'socketSoTimeoutPeriod'.
 java.lang.String getSocketSoTimeoutRequired()
          Returns the value of field 'socketSoTimeoutRequired'.
 int getTCPPort()
          Returns the value of field 'TCPPort'.
 int getUDPPort()
          Returns the value of field 'UDPPort'.
 boolean hasReceivers()
          Method hasReceivers
 boolean hasSocketSoTimeoutPeriod()
          Method hasSocketSoTimeoutPeriod
 boolean hasTCPPort()
          Method hasTCPPort
 boolean hasUDPPort()
          Method hasUDPPort
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setGetNextAlarmID(java.lang.String getNextAlarmID)
          Sets the value of field 'getNextAlarmID'.
 void setGetNextEventID(java.lang.String getNextEventID)
          Sets the value of field 'getNextEventID'.
 void setReceivers(int receivers)
          Sets the value of field 'receivers'.
 void setSocketSoTimeoutPeriod(int socketSoTimeoutPeriod)
          Sets the value of field 'socketSoTimeoutPeriod'.
 void setSocketSoTimeoutRequired(java.lang.String socketSoTimeoutRequired)
          Sets the value of field 'socketSoTimeoutRequired'.
 void setTCPPort(int TCPPort)
          Sets the value of field 'TCPPort'.
 void setUDPPort(int UDPPort)
          Sets the value of field 'UDPPort'.
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

EventdConfiguration

public EventdConfiguration()
Method Detail

deleteReceivers

public void deleteReceivers()
Method deleteReceivers


deleteSocketSoTimeoutPeriod

public void deleteSocketSoTimeoutPeriod()
Method deleteSocketSoTimeoutPeriod


deleteTCPPort

public void deleteTCPPort()
Method deleteTCPPort


deleteUDPPort

public void deleteUDPPort()
Method deleteUDPPort


getGetNextAlarmID

public java.lang.String getGetNextAlarmID()
Returns the value of field 'getNextAlarmID'. The field 'getNextAlarmID' has the following description: SQL query to get the next sequence for the alarms table serial number.

Returns:
String

getGetNextEventID

public java.lang.String getGetNextEventID()
Returns the value of field 'getNextEventID'. The field 'getNextEventID' has the following description: SQL query to get next value of the 'nodeNxtId' database sequence. This is used to make the access database independant.

Returns:
String

getReceivers

public int getReceivers()
Returns the value of field 'receivers'. The field 'receivers' has the following description: The maximum number of threads used for reading and processing of incoming events.

Returns:
int

getSocketSoTimeoutPeriod

public int getSocketSoTimeoutPeriod()
Returns the value of field 'socketSoTimeoutPeriod'. The field 'socketSoTimeoutPeriod' has the following description: Socket timeout, in milliseconds. This is only set on eventd's sockets if socketSoTimeoutRequired is set to 'yes'.

Returns:
int

getSocketSoTimeoutRequired

public java.lang.String getSocketSoTimeoutRequired()
Returns the value of field 'socketSoTimeoutRequired'. The field 'socketSoTimeoutRequired' has the following description: Set the socket timeout value. In Linux, the close() system call is not preemptive. Setting this attribute to to 'yes' causes the socketSoTimeoutPeriod attribute to be set on sockets to mimic non-blocking socket I/O.

Returns:
String

getTCPPort

public int getTCPPort()
Returns the value of field 'TCPPort'. The field 'TCPPort' has the following description: The port on which eventd listens for TCP connections. The standard port is 5817.

Returns:
int

getUDPPort

public int getUDPPort()
Returns the value of field 'UDPPort'. The field 'UDPPort' has the following description: The port on which eventd listens for UDP data. The standard port is 5817.

Returns:
int

hasReceivers

public boolean hasReceivers()
Method hasReceivers

Returns:
boolean

hasSocketSoTimeoutPeriod

public boolean hasSocketSoTimeoutPeriod()
Method hasSocketSoTimeoutPeriod

Returns:
boolean

hasTCPPort

public boolean hasTCPPort()
Method hasTCPPort

Returns:
boolean

hasUDPPort

public boolean hasUDPPort()
Method hasUDPPort

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

setGetNextAlarmID

public void setGetNextAlarmID(java.lang.String getNextAlarmID)
Sets the value of field 'getNextAlarmID'. The field 'getNextAlarmID' has the following description: SQL query to get the next sequence for the alarms table serial number.

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

setGetNextEventID

public void setGetNextEventID(java.lang.String getNextEventID)
Sets the value of field 'getNextEventID'. The field 'getNextEventID' has the following description: SQL query to get next value of the 'nodeNxtId' database sequence. This is used to make the access database independant.

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

setReceivers

public void setReceivers(int receivers)
Sets the value of field 'receivers'. The field 'receivers' has the following description: The maximum number of threads used for reading and processing of incoming events.

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

setSocketSoTimeoutPeriod

public void setSocketSoTimeoutPeriod(int socketSoTimeoutPeriod)
Sets the value of field 'socketSoTimeoutPeriod'. The field 'socketSoTimeoutPeriod' has the following description: Socket timeout, in milliseconds. This is only set on eventd's sockets if socketSoTimeoutRequired is set to 'yes'.

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

setSocketSoTimeoutRequired

public void setSocketSoTimeoutRequired(java.lang.String socketSoTimeoutRequired)
Sets the value of field 'socketSoTimeoutRequired'. The field 'socketSoTimeoutRequired' has the following description: Set the socket timeout value. In Linux, the close() system call is not preemptive. Setting this attribute to to 'yes' causes the socketSoTimeoutPeriod attribute to be set on sockets to mimic non-blocking socket I/O.

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

setTCPPort

public void setTCPPort(int TCPPort)
Sets the value of field 'TCPPort'. The field 'TCPPort' has the following description: The port on which eventd listens for TCP connections. The standard port is 5817.

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

setUDPPort

public void setUDPPort(int UDPPort)
Sets the value of field 'UDPPort'. The field 'UDPPort' has the following description: The port on which eventd listens for UDP data. The standard port is 5817.

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

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.