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 intgetBatchIntervalMs()Messages are aggregated in batches before being dispatched.intgetBatchSize()Messages are aggregated in batches before being dispatched.booleangetNewSuspectOnTrap()Whether or not a newSuspect event should be generated with a trap from an unknown IP addressintgetNumThreads()Number of threads used for consuming/dispatching messages.intgetQueueSize()Maximum number of messages to keep in memory while waiting to be dispatched.StringgetSnmpTrapAddress()intgetSnmpTrapPort()List<SnmpV3User>getSnmpV3Users()booleanisIncludeRawMessage()booleanshouldUseAddressFromVarbind()voidupdate(TrapdConfig config)
-
-
-
Method Detail
-
getSnmpTrapAddress
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
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()
-
-