org.opennms.netmgt.config
Class EventdConfigManager

java.lang.Object
  extended by org.opennms.netmgt.config.EventdConfigManager
Direct Known Subclasses:
EventdConfigFactory

public class EventdConfigManager
extends Object

EventdConfigManager class.

Version:
$Id: $
Author:
david

Field Summary
protected  EventdConfiguration m_config
          The config class loaded from the config file
 
Constructor Summary
protected EventdConfigManager(InputStream stream)
          Constructor for EventdConfigManager.
protected EventdConfigManager(Reader reader)
          Deprecated. 
  EventdConfigManager(String configFile)
          Constructor for EventdConfigManager.
 
Method Summary
 String getGetNextEventID()
          Return the SQL statemet to get the next event ID.
 int getReceivers()
          Return the number of event receivers to be started.
 int getSocketSoTimeoutPeriod()
          Return timeout to be set on the socket.
 String getSocketSoTimeoutRequired()
          Return string indicating if timeout is to be set on the socket.
 String getTCPIpAddress()
          Return the IP address on which eventd listens for TCP connections.
 int getTCPPort()
          Return the port on which eventd listens for TCP connections.
 String getUDPIpAddress()
          Return the IP address on which eventd listens for UDP packets.
 int getUDPPort()
          Return the port on which eventd listens for UDP data.
 boolean hasSocketSoTimeoutPeriod()
          Return flag indicating if timeout to be set on the socket is specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_config

protected EventdConfiguration m_config
The config class loaded from the config file

Constructor Detail

EventdConfigManager

@Deprecated
protected EventdConfigManager(Reader reader)
                       throws org.exolab.castor.xml.MarshalException,
                              org.exolab.castor.xml.ValidationException,
                              IOException
Deprecated. 

Constructor

Parameters:
reader - a Reader object.
Throws:
org.exolab.castor.xml.ValidationException - if any.
org.exolab.castor.xml.MarshalException - if any.
IOException - if any.

EventdConfigManager

protected EventdConfigManager(InputStream stream)
                       throws org.exolab.castor.xml.MarshalException,
                              org.exolab.castor.xml.ValidationException,
                              IOException

Constructor for EventdConfigManager.

Parameters:
stream - a InputStream object.
Throws:
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
IOException - if any.

EventdConfigManager

public EventdConfigManager(String configFile)
                    throws FileNotFoundException,
                           org.exolab.castor.xml.MarshalException,
                           org.exolab.castor.xml.ValidationException

Constructor for EventdConfigManager.

Parameters:
configFile - a String object.
Throws:
FileNotFoundException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
Method Detail

getTCPIpAddress

public String getTCPIpAddress()
Return the IP address on which eventd listens for TCP connections.

Returns:
the IP address on which eventd listens for TCP connections

getTCPPort

public int getTCPPort()
Return the port on which eventd listens for TCP connections.

Returns:
the port on which eventd listens for TCP connections

getUDPIpAddress

public String getUDPIpAddress()
Return the IP address on which eventd listens for UDP packets.

Returns:
the IP address on which eventd listens for UDP packets

getUDPPort

public int getUDPPort()
Return the port on which eventd listens for UDP data.

Returns:
the port on which eventd listens for UDP data

getReceivers

public int getReceivers()
Return the number of event receivers to be started.

Returns:
the number of event receivers to be started

getSocketSoTimeoutRequired

public String getSocketSoTimeoutRequired()
Return string indicating if timeout is to be set on the socket.

Returns:
string indicating if timeout is to be set on the socket

getSocketSoTimeoutPeriod

public int getSocketSoTimeoutPeriod()
Return timeout to be set on the socket.

Returns:
timeout is to be set on the socket

hasSocketSoTimeoutPeriod

public boolean hasSocketSoTimeoutPeriod()
Return flag indicating if timeout to be set on the socket is specified.

Returns:
flag indicating if timeout to be set on the socket is specified <

getGetNextEventID

public String getGetNextEventID()
Return the SQL statemet to get the next event ID.

Returns:
the SQL statemet to get the next event ID


Copyright © 2011. All Rights Reserved.