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

Author:
david

Field Summary
protected  EventdConfiguration m_config
          The config class loaded from the config file
 
Constructor Summary
protected EventdConfigManager(InputStream stream)
           
protected EventdConfigManager(Reader reader)
          Deprecated. 
  EventdConfigManager(String configFile)
           
 
Method Summary
 String getGetNextAlarmID()
           
 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

Throws:
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
IOException

EventdConfigManager

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

EventdConfigManager

public EventdConfigManager(String configFile)
                    throws FileNotFoundException,
                           org.exolab.castor.xml.MarshalException,
                           org.exolab.castor.xml.ValidationException
Throws:
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
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

getGetNextAlarmID

public String getGetNextAlarmID()


Copyright © 2009. All Rights Reserved.