Package org.opennms.netmgt.config
Interface TrapdConfig
-
- All Known Implementing Classes:
TrapdConfigBean
,TrapdConfigFactory
public interface TrapdConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBatchIntervalMs()
Messages are aggregated in batches before being dispatched.int
getBatchSize()
Messages are aggregated in batches before being dispatched.boolean
getNewSuspectOnTrap()
Whether or not a newSuspect event should be generated with a trap from an unknown IP addressint
getNumThreads()
Number of threads used for consuming/dispatching messages.int
getQueueSize()
Maximum number of messages to keep in memory while waiting to be dispatched.java.lang.String
getSnmpTrapAddress()
int
getSnmpTrapPort()
java.util.List<SnmpV3User>
getSnmpV3Users()
boolean
isIncludeRawMessage()
boolean
shouldUseAddressFromVarbind()
void
update(TrapdConfig config)
-
-
-
Method Detail
-
getSnmpTrapAddress
java.lang.String getSnmpTrapAddress()
-
getSnmpTrapPort
int getSnmpTrapPort()
-
getNewSuspectOnTrap
boolean getNewSuspectOnTrap()
Whether or not a newSuspect event should be generated with a trap from an unknown IP address
-
getSnmpV3Users
java.util.List<SnmpV3User> getSnmpV3Users()
-
isIncludeRawMessage
boolean isIncludeRawMessage()
-
getNumThreads
int getNumThreads()
Number of threads used for consuming/dispatching messages.- Returns:
- number of threads
-
getQueueSize
int getQueueSize()
Maximum number of messages to keep in memory while waiting to be dispatched.- Returns:
- queue size
-
getBatchSize
int getBatchSize()
Messages are aggregated in batches before being dispatched. When the batch reaches this size, it will be dispatched.- Returns:
- batch size
-
getBatchIntervalMs
int getBatchIntervalMs()
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.- Returns:
- interval in ms
-
update
void update(TrapdConfig config)
-
shouldUseAddressFromVarbind
boolean shouldUseAddressFromVarbind()
-
-