Class TrapdConfigBean

  • All Implemented Interfaces:
    java.io.Serializable, TrapdConfig

    public class TrapdConfigBean
    extends java.lang.Object
    implements TrapdConfig, java.io.Serializable
    This is a bean container that can be used as a TrapdConfig service.
    Author:
    dp044946
    See Also:
    Serialized Form
    • Constructor Detail

      • TrapdConfigBean

        public TrapdConfigBean()
      • TrapdConfigBean

        public TrapdConfigBean​(TrapdConfig configToClone)
    • Method Detail

      • setSnmpTrapAddress

        public void setSnmpTrapAddress​(java.lang.String snmpTrapAddress)
      • setSnmpTrapPort

        public void setSnmpTrapPort​(int snmpTrapPort)
      • setNewSuspectOnTrap

        public void setNewSuspectOnTrap​(boolean newSuspectOnTrap)
      • setSnmpV3Users

        public void setSnmpV3Users​(java.util.List<SnmpV3User> snmpV3Users)
      • getNewSuspectOnTrap

        public boolean getNewSuspectOnTrap()
        Description copied from interface: TrapdConfig
        Whether or not a newSuspect event should be generated with a trap from an unknown IP address
        Specified by:
        getNewSuspectOnTrap in interface TrapdConfig
      • setIncludeRawMessage

        public void setIncludeRawMessage​(boolean includeRawMessage)
      • getNumThreads

        public int getNumThreads()
        Description copied from interface: TrapdConfig
        Number of threads used for consuming/dispatching messages.
        Specified by:
        getNumThreads in interface TrapdConfig
        Returns:
        number of threads
      • getQueueSize

        public int getQueueSize()
        Description copied from interface: TrapdConfig
        Maximum number of messages to keep in memory while waiting to be dispatched.
        Specified by:
        getQueueSize in interface TrapdConfig
        Returns:
        queue size
      • getBatchSize

        public int getBatchSize()
        Description copied from interface: TrapdConfig
        Messages are aggregated in batches before being dispatched. When the batch reaches this size, it will be dispatched.
        Specified by:
        getBatchSize in interface TrapdConfig
        Returns:
        batch size
      • getBatchIntervalMs

        public int getBatchIntervalMs()
        Description copied from interface: TrapdConfig
        Messages are aggregated in batches before being dispatched. When the batch has been created for longer than this interval it will be dispatched, regardless of the size.
        Specified by:
        getBatchIntervalMs in interface TrapdConfig
        Returns:
        interval in ms
      • setBatchIntervalMs

        public void setBatchIntervalMs​(int batchIntervalInMs)
      • setBatchSize

        public void setBatchSize​(int batchSize)
      • setQueueSize

        public void setQueueSize​(int queueSize)
      • setNumThreads

        public void setNumThreads​(int numThreads)
      • setUseAddressFromVarbind

        public void setUseAddressFromVarbind​(boolean useAddressFromVarbind)