Class EmailNorthbounderConfig
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.email.EmailNorthbounderConfig
-
- All Implemented Interfaces:
java.io.Serializable
public class EmailNorthbounderConfig extends java.lang.Object implements java.io.Serializable
Configuration for Email NBI implementation.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmailNorthbounderConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEmailDestination(EmailDestination emailDestination)
Adds a specific email destination.java.lang.Integer
getBatchSize()
Gets the batch size.EmailDestination
getEmailDestination(java.lang.String destinationName)
Gets a specific Email destination.java.util.List<EmailDestination>
getEmailDestinations()
Gets the Email destinations.java.lang.Integer
getNaglesDelay()
Gets the nagles delay.java.lang.Integer
getQueueSize()
Gets the queue size.java.util.List<java.lang.String>
getUeis()
Gets the UEIs.java.lang.Boolean
isEnabled()
Checks if is enabled.boolean
removeEmailDestination(java.lang.String destinationName)
Removes a specific email destination.void
setBatchSize(java.lang.Integer batchSize)
Sets the batch size.void
setDestinations(java.util.List<EmailDestination> destinations)
Sets the Email destinations.void
setEnabled(java.lang.Boolean enabled)
Sets the enabled.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
-
getEmailDestinations
public java.util.List<EmailDestination> getEmailDestinations()
Gets the Email destinations.- Returns:
- the Email destinations
-
setDestinations
public void setDestinations(java.util.List<EmailDestination> destinations)
Sets the Email destinations.- Parameters:
destinations
- the new Email 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
-
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
-
getEmailDestination
public EmailDestination getEmailDestination(java.lang.String destinationName)
Gets a specific Email destination.- Parameters:
destinationName
- the Email destination name- Returns:
- the Email destination object
-
addEmailDestination
public void addEmailDestination(EmailDestination emailDestination)
Adds a specific email destination.If there is a destination with the same name, the existing one will be overridden.
- Parameters:
emailDestination
- the Email destination object
-
removeEmailDestination
public boolean removeEmailDestination(java.lang.String destinationName)
Removes a specific email destination.- Parameters:
destinationName
- the destination name- Returns:
- true, if successful
-
-