Class SnmpTrapNorthbounderConfig
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.snmptrap.SnmpTrapNorthbounderConfig
-
- All Implemented Interfaces:
Serializable
public class SnmpTrapNorthbounderConfig extends Object implements Serializable
Configuration for SNMP Trap NBI implementation.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnmpTrapNorthbounderConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSnmpTrapSink(SnmpTrapSink snmpTrapSink)
Adds the SNMP trap sink.Integer
getBatchSize()
Gets the batch size.Integer
getNaglesDelay()
Gets the nagles delay.Integer
getQueueSize()
Gets the queue size.SnmpTrapSink
getSnmpTrapSink(String trapSinkName)
Gets a specific trap sink.List<SnmpTrapSink>
getSnmpTrapSinks()
Gets the SNMP Trap sinks.List<String>
getUeis()
Gets the UEIs.Boolean
isEnabled()
Checks if is enabled.boolean
removeSnmpTrapSink(String trapSinkName)
Removes a specific SNMP trap sink.void
setBatchSize(Integer batchSize)
Sets the batch size.void
setDestinations(List<SnmpTrapSink> snmpTrapSinks)
Sets the SNMP Trap sinks.void
setEnabled(Boolean enabled)
Sets the enabled.void
setNaglesDelay(Integer naglesDelay)
Sets the nagles delay.void
setQueueSize(Integer alarmQueueSize)
Sets the queue size.void
setUeis(List<String> ueis)
Sets the UEIs.
-
-
-
Method Detail
-
getSnmpTrapSinks
public List<SnmpTrapSink> getSnmpTrapSinks()
Gets the SNMP Trap sinks.- Returns:
- the SNMP Trap sinks
-
setDestinations
public void setDestinations(List<SnmpTrapSink> snmpTrapSinks)
Sets the SNMP Trap sinks.- Parameters:
snmpTrapSinks
- the new SNMP Trap sinks
-
getNaglesDelay
public Integer getNaglesDelay()
Gets the nagles delay.- Returns:
- the nagles delay
-
setNaglesDelay
public void setNaglesDelay(Integer naglesDelay)
Sets the nagles delay.- Parameters:
naglesDelay
- the new nagles delay
-
getBatchSize
public Integer getBatchSize()
Gets the batch size.- Returns:
- the batch size
-
setBatchSize
public void setBatchSize(Integer batchSize)
Sets the batch size.- Parameters:
batchSize
- the new batch size
-
getQueueSize
public Integer getQueueSize()
Gets the queue size.- Returns:
- the queue size
-
setQueueSize
public void setQueueSize(Integer alarmQueueSize)
Sets the queue size.- Parameters:
alarmQueueSize
- the new queue size
-
isEnabled
public Boolean isEnabled()
Checks if is enabled.- Returns:
- the boolean
-
setEnabled
public void setEnabled(Boolean enabled)
Sets the enabled.- Parameters:
enabled
- the new enabled
-
getSnmpTrapSink
public SnmpTrapSink getSnmpTrapSink(String trapSinkName)
Gets a specific trap sink.- Parameters:
trapSinkName
- the trap sink name- Returns:
- the trap sink object
-
addSnmpTrapSink
public void addSnmpTrapSink(SnmpTrapSink snmpTrapSink)
Adds the SNMP trap sink.If there is a trap sink with the same name, the existing one will be overridden.
- Parameters:
snmpTrapSink
- the SNMP trap sink
-
removeSnmpTrapSink
public boolean removeSnmpTrapSink(String trapSinkName)
Removes a specific SNMP trap sink.- Parameters:
trapSinkName
- the trap sink name- Returns:
- true, if successful
-
-