Class TrapdConfiguration

  • All Implemented Interfaces:
    Serializable

    public class TrapdConfiguration
    extends Object
    implements Serializable
    Top-level element for the trapd-configuration.xml configuration file.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Field Detail

      • DEFAULT_USE_ADDESS_FROM_VARBIND

        public static final boolean DEFAULT_USE_ADDESS_FROM_VARBIND
        See Also:
        Constant Field Values
    • Constructor Detail

      • TrapdConfiguration

        public TrapdConfiguration()
      • TrapdConfiguration

        public TrapdConfiguration​(int _snmpTrapPort,
                                  String snmpTrapAddress)
    • Method Detail

      • deleteNewSuspectOnTrap

        public void deleteNewSuspectOnTrap()
      • deleteSnmpTrapPort

        public void deleteSnmpTrapPort()
      • enumerateSnmpv3User

        public Enumeration<Snmpv3User> enumerateSnmpv3User()
        Method enumerateSnmpv3User.
        Returns:
        an Enumeration over all possible elements of this collection
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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:
        the value of field 'NewSuspectOnTrap'.
      • getSnmpTrapAddress

        public String getSnmpTrapAddress()
        Returns the value of field 'snmpTrapAddress'. The field 'snmpTrapAddress' has the following description: The IP address on which trapd listens for connections. If "" is specified, trapd will bind to all addresses. The default is .
        Returns:
        the value of field 'SnmpTrapAddress'.
      • 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:
        the value of field 'SnmpTrapPort'.
      • getSnmpv3User

        public Snmpv3User[] getSnmpv3User()
        Method getSnmpv3User.Returns the contents of the collection in an Array.

        Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

        Returns:
        this collection as an Array
      • getSnmpv3UserCollection

        public List<Snmpv3User> getSnmpv3UserCollection()
        Method getSnmpv3UserCollection.Returns a reference to '_snmpv3UserList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getSnmpv3UserCount

        public int getSnmpv3UserCount()
        Method getSnmpv3UserCount.
        Returns:
        the size of this collection
      • hasNewSuspectOnTrap

        public boolean hasNewSuspectOnTrap()
        Method hasNewSuspectOnTrap.
        Returns:
        true if at least one NewSuspectOnTrap has been added
      • hasSnmpTrapPort

        public boolean hasSnmpTrapPort()
        Method hasSnmpTrapPort.
        Returns:
        true if at least one SnmpTrapPort has been added
      • isNewSuspectOnTrap

        public boolean isNewSuspectOnTrap()
        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:
        the value of field 'NewSuspectOnTrap'.
      • shouldUseAddressFromVarbind

        public boolean shouldUseAddressFromVarbind()
      • setUseAddressFromVarbind

        public void setUseAddressFromVarbind​(Boolean useAddessFromVarbind)
      • iterateSnmpv3User

        public Iterator<Snmpv3User> iterateSnmpv3User()
        Method iterateSnmpv3User.
        Returns:
        an Iterator over all possible elements in this collection
      • removeAllSnmpv3User

        public void removeAllSnmpv3User()
      • removeSnmpv3User

        public boolean removeSnmpv3User​(Snmpv3User vSnmpv3User)
        Method removeSnmpv3User.
        Parameters:
        vSnmpv3User -
        Returns:
        true if the object was removed from the collection.
      • removeSnmpv3UserAt

        public Snmpv3User removeSnmpv3UserAt​(int index)
        Method removeSnmpv3UserAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • 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'
      • setSnmpTrapAddress

        public void setSnmpTrapAddress​(String snmpTrapAddress)
        Sets the value of field 'snmpTrapAddress'. The field 'snmpTrapAddress' has the following description: The IP address on which trapd listens for connections. If "" is specified, trapd will bind to all addresses. The default is .
        Parameters:
        snmpTrapAddress - the value of field 'snmpTrapAddress'.
      • 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'.
      • setSnmpv3User

        public void setSnmpv3User​(Snmpv3User[] vSnmpv3UserArray)
        Parameters:
        vSnmpv3UserArray -
      • setSnmpv3User

        public void setSnmpv3User​(List<Snmpv3User> vSnmpv3UserList)
        Sets the value of '_snmpv3UserList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vSnmpv3UserList - the Vector to copy.
      • setSnmpv3UserCollection

        public void setSnmpv3UserCollection​(List<Snmpv3User> snmpv3UserList)
        Deprecated.
        Sets the value of '_snmpv3UserList' by setting it to the given Vector. No type checking is performed.
        Parameters:
        snmpv3UserList - the Vector to set.
      • isIncludeRawMessage

        public boolean isIncludeRawMessage()
      • setIncludeRawMessage

        public void setIncludeRawMessage​(boolean _includeRawMessage)
      • getThreads

        public int getThreads()
      • setThreads

        public void setThreads​(int _threads)
      • getQueueSize

        public int getQueueSize()
      • setQueueSize

        public void setQueueSize​(int _queueSize)
      • getBatchSize

        public int getBatchSize()
      • setBatchSize

        public void setBatchSize​(int _batchSize)
      • getBatchInterval

        public int getBatchInterval()
      • setBatchInterval

        public void setBatchInterval​(int _batchInterval)