org.opennms.netmgt.config.syslogd
Class Configuration

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

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

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

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

Constructor Summary
Configuration()
           
 
Method Summary
 void deleteMatchingGroupHost()
          Method deleteMatchingGroupHost
 void deleteMatchingGroupMessage()
          Method deleteMatchingGroupMessage
 void deleteNewSuspectOnMessage()
          Method deleteNewSuspectOnMessage
 void deleteSyslogPort()
          Method deleteSyslogPort
 java.lang.String getForwardingRegexp()
          Returns the value of field 'forwardingRegexp'.
 int getMatchingGroupHost()
          Returns the value of field 'matchingGroupHost'.
 int getMatchingGroupMessage()
          Returns the value of field 'matchingGroupMessage'.
 boolean getNewSuspectOnMessage()
          Returns the value of field 'newSuspectOnMessage'.
 int getSyslogPort()
          Returns the value of field 'syslogPort'.
 boolean hasMatchingGroupHost()
          Method hasMatchingGroupHost
 boolean hasMatchingGroupMessage()
          Method hasMatchingGroupMessage
 boolean hasNewSuspectOnMessage()
          Method hasNewSuspectOnMessage
 boolean hasSyslogPort()
          Method hasSyslogPort
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setForwardingRegexp(java.lang.String forwardingRegexp)
          Sets the value of field 'forwardingRegexp'.
 void setMatchingGroupHost(int matchingGroupHost)
          Sets the value of field 'matchingGroupHost'.
 void setMatchingGroupMessage(int matchingGroupMessage)
          Sets the value of field 'matchingGroupMessage'.
 void setNewSuspectOnMessage(boolean newSuspectOnMessage)
          Sets the value of field 'newSuspectOnMessage'.
 void setSyslogPort(int syslogPort)
          Sets the value of field 'syslogPort'.
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

Configuration

public Configuration()
Method Detail

deleteMatchingGroupHost

public void deleteMatchingGroupHost()
Method deleteMatchingGroupHost


deleteMatchingGroupMessage

public void deleteMatchingGroupMessage()
Method deleteMatchingGroupMessage


deleteNewSuspectOnMessage

public void deleteNewSuspectOnMessage()
Method deleteNewSuspectOnMessage


deleteSyslogPort

public void deleteSyslogPort()
Method deleteSyslogPort


getForwardingRegexp

public java.lang.String getForwardingRegexp()
Returns the value of field 'forwardingRegexp'. The field 'forwardingRegexp' has the following description: The regular expression used to separate message and host.

Returns:
String

getMatchingGroupHost

public int getMatchingGroupHost()
Returns the value of field 'matchingGroupHost'. The field 'matchingGroupHost' has the following description: The matching group for the host

Returns:
int

getMatchingGroupMessage

public int getMatchingGroupMessage()
Returns the value of field 'matchingGroupMessage'. The field 'matchingGroupMessage' has the following description: The matching group for the message

Returns:
int

getNewSuspectOnMessage

public boolean getNewSuspectOnMessage()
Returns the value of field 'newSuspectOnMessage'. The field 'newSuspectOnMessage' has the following description: Whether messages from devices unknown to OpenNMS should generate newSuspect events.

Returns:
boolean

getSyslogPort

public int getSyslogPort()
Returns the value of field 'syslogPort'. The field 'syslogPort' has the following description: The port on which Syslogd listens for SYSLOG Messages. The standard port is 514.

Returns:
int

hasMatchingGroupHost

public boolean hasMatchingGroupHost()
Method hasMatchingGroupHost

Returns:
boolean

hasMatchingGroupMessage

public boolean hasMatchingGroupMessage()
Method hasMatchingGroupMessage

Returns:
boolean

hasNewSuspectOnMessage

public boolean hasNewSuspectOnMessage()
Method hasNewSuspectOnMessage

Returns:
boolean

hasSyslogPort

public boolean hasSyslogPort()
Method hasSyslogPort

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

setForwardingRegexp

public void setForwardingRegexp(java.lang.String forwardingRegexp)
Sets the value of field 'forwardingRegexp'. The field 'forwardingRegexp' has the following description: The regular expression used to separate message and host.

Parameters:
forwardingRegexp - the value of field 'forwardingRegexp'

setMatchingGroupHost

public void setMatchingGroupHost(int matchingGroupHost)
Sets the value of field 'matchingGroupHost'. The field 'matchingGroupHost' has the following description: The matching group for the host

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

setMatchingGroupMessage

public void setMatchingGroupMessage(int matchingGroupMessage)
Sets the value of field 'matchingGroupMessage'. The field 'matchingGroupMessage' has the following description: The matching group for the message

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

setNewSuspectOnMessage

public void setNewSuspectOnMessage(boolean newSuspectOnMessage)
Sets the value of field 'newSuspectOnMessage'. The field 'newSuspectOnMessage' has the following description: Whether messages from devices unknown to OpenNMS should generate newSuspect events.

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

setSyslogPort

public void setSyslogPort(int syslogPort)
Sets the value of field 'syslogPort'. The field 'syslogPort' has the following description: The port on which Syslogd listens for SYSLOG Messages. The standard port is 514.

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

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.