Class SyslogNorthbounderConfig
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.syslog.SyslogNorthbounderConfig
-
- All Implemented Interfaces:
java.io.Serializable
public class SyslogNorthbounderConfig extends java.lang.Object implements java.io.Serializable
Configuration for Syslog NBI implementation.- Author:
- David Hustace
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyslogNorthbounderConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSyslogDestination(SyslogDestination syslogDestination)
Adds a specific Syslog destination.java.lang.Integer
getBatchSize()
Gets the batch size.java.lang.String
getDateFormat()
Gets the date format.java.util.List<SyslogDestination>
getDestinations()
Gets the destinations.java.lang.String
getMessageFormat()
Gets the message format.java.lang.Integer
getNaglesDelay()
Gets the nagles delay.java.lang.Integer
getQueueSize()
Gets the queue size.SyslogDestination
getSyslogDestination(java.lang.String syslogDestinationName)
Gets a specific Syslog destination.java.util.List<java.lang.String>
getUeis()
Gets the UEIs.java.lang.Boolean
isEnabled()
Checks if is enabled.boolean
removeSyslogDestination(java.lang.String syslogDestinationName)
Removes a specific syslog destination.void
setBatchSize(java.lang.Integer batchSize)
Sets the batch size.void
setDateFormat(java.lang.String dateFormat)
Sets the date format.void
setDestinations(java.util.List<SyslogDestination> destinations)
Sets the destinations.void
setEnabled(java.lang.Boolean enabled)
Sets the enabled.void
setMessageFormat(java.lang.String messageFormat)
Sets the message format.void
setNaglesDelay(java.lang.Integer naglesDelay)
Sets the nagles delay.void
setQueueSize(java.lang.Integer alarmQueueSize)
Sets the queue size.void
setUeis(java.util.List<java.lang.String> ueis)
Sets the UEIs.
-
-
-
Method Detail
-
getDestinations
public java.util.List<SyslogDestination> getDestinations()
Gets the destinations.- Returns:
- the destinations
-
setDestinations
public void setDestinations(java.util.List<SyslogDestination> destinations)
Sets the destinations.- Parameters:
destinations
- the new destinations
-
getUeis
public java.util.List<java.lang.String> getUeis()
Gets the UEIs.- Returns:
- the UEIs
-
setUeis
public void setUeis(java.util.List<java.lang.String> ueis)
Sets the UEIs.- Parameters:
ueis
- the new UEIs
-
getMessageFormat
public java.lang.String getMessageFormat()
Gets the message format.- Returns:
- the message format
-
setMessageFormat
public void setMessageFormat(java.lang.String messageFormat)
Sets the message format.- Parameters:
messageFormat
- the new message format
-
getDateFormat
public java.lang.String getDateFormat()
Gets the date format.- Returns:
- the date format
-
setDateFormat
public void setDateFormat(java.lang.String dateFormat)
Sets the date format.- Parameters:
dateFormat
- sets the date format
-
getNaglesDelay
public java.lang.Integer getNaglesDelay()
Gets the nagles delay.- Returns:
- the nagles delay
-
setNaglesDelay
public void setNaglesDelay(java.lang.Integer naglesDelay)
Sets the nagles delay.- Parameters:
naglesDelay
- the new nagles delay
-
getBatchSize
public java.lang.Integer getBatchSize()
Gets the batch size.- Returns:
- the batch size
-
setBatchSize
public void setBatchSize(java.lang.Integer batchSize)
Sets the batch size.- Parameters:
batchSize
- the new batch size
-
getQueueSize
public java.lang.Integer getQueueSize()
Gets the queue size.- Returns:
- the queue size
-
setQueueSize
public void setQueueSize(java.lang.Integer alarmQueueSize)
Sets the queue size.- Parameters:
alarmQueueSize
- the new queue size
-
isEnabled
public java.lang.Boolean isEnabled()
Checks if is enabled.- Returns:
- the boolean
-
setEnabled
public void setEnabled(java.lang.Boolean enabled)
Sets the enabled.- Parameters:
enabled
- the new enabled
-
getSyslogDestination
public SyslogDestination getSyslogDestination(java.lang.String syslogDestinationName)
Gets a specific Syslog destination.- Parameters:
syslogDestinationName
- the Syslog destination name- Returns:
- the Syslog destination
-
addSyslogDestination
public void addSyslogDestination(SyslogDestination syslogDestination)
Adds a specific Syslog destination.If there is a destination with the same name, the existing one will be overridden.
- Parameters:
syslogDestination
- the Syslog destination object
-
removeSyslogDestination
public boolean removeSyslogDestination(java.lang.String syslogDestinationName)
Removes a specific syslog destination.- Parameters:
syslogDestinationName
- the Syslog destination name- Returns:
- true, if successful
-
-