org.opennms.netmgt.config.trapd
Class TrapdConfiguration

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

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

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

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

Constructor Summary
TrapdConfiguration()
           
 
Method Summary
 void deleteNewSuspectOnTrap()
          Method deleteNewSuspectOnTrap
 void deleteSnmpTrapPort()
          Method deleteSnmpTrapPort
 boolean getNewSuspectOnTrap()
          Returns the value of field 'newSuspectOnTrap'.
 int getSnmpTrapPort()
          Returns the value of field 'snmpTrapPort'.
 boolean hasNewSuspectOnTrap()
          Method hasNewSuspectOnTrap
 boolean hasSnmpTrapPort()
          Method hasSnmpTrapPort
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setNewSuspectOnTrap(boolean newSuspectOnTrap)
          Sets the value of field 'newSuspectOnTrap'.
 void setSnmpTrapPort(int snmpTrapPort)
          Sets the value of field 'snmpTrapPort'.
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

TrapdConfiguration

public TrapdConfiguration()
Method Detail

deleteNewSuspectOnTrap

public void deleteNewSuspectOnTrap()
Method deleteNewSuspectOnTrap


deleteSnmpTrapPort

public void deleteSnmpTrapPort()
Method deleteSnmpTrapPort


getNewSuspectOnTrap

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

Returns:
boolean

getSnmpTrapPort

public int getSnmpTrapPort()
Returns the value of field 'snmpTrapPort'. The field 'snmpTrapPort' has the following description: The port on which trapd listens for SNMP traps. The standard port is 162.

Returns:
int

hasNewSuspectOnTrap

public boolean hasNewSuspectOnTrap()
Method hasNewSuspectOnTrap

Returns:
boolean

hasSnmpTrapPort

public boolean hasSnmpTrapPort()
Method hasSnmpTrapPort

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

setNewSuspectOnTrap

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

Parameters:
newSuspectOnTrap - the value of field 'newSuspectOnTrap'

setSnmpTrapPort

public void setSnmpTrapPort(int snmpTrapPort)
Sets the value of field 'snmpTrapPort'. The field 'snmpTrapPort' has the following description: The port on which trapd listens for SNMP traps. The standard port is 162.

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

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.