Class EmailDestination
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.email.EmailDestination
-
- All Implemented Interfaces:
Serializable,Destination
public class EmailDestination extends Object implements Destination
Configuration for the various Email hosts to receive alarms via Email.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmailDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(NorthboundAlarm alarm)Accepts.List<EmailFilter>getFilters()Gets the filters.StringgetName()Gets the destination name.booleanisFirstOccurrenceOnly()Checks if is first occurrence only.voidsetFilters(List<EmailFilter> filters)Sets the filters.voidsetName(String name)Sets the name.
-
-
-
Method Detail
-
isFirstOccurrenceOnly
public boolean isFirstOccurrenceOnly()
Description copied from interface:DestinationChecks if is first occurrence only.- Specified by:
isFirstOccurrenceOnlyin interfaceDestination- Returns:
- true, if is first occurrence only
-
getName
public String getName()
Description copied from interface:DestinationGets the destination name.- Specified by:
getNamein interfaceDestination- Returns:
- the destination name
-
setName
public void setName(String name)
Sets the name.- Parameters:
name- the new name
-
getFilters
public List<EmailFilter> getFilters()
Gets the filters.- Returns:
- the filters
-
setFilters
public void setFilters(List<EmailFilter> filters)
Sets the filters.- Parameters:
filters- the new filters
-
accepts
public boolean accepts(NorthboundAlarm alarm)
Accepts.If the destination doesn't have filter, the method will return true.
If the method has filters, they will be evaluated. If no filters are satisfied, the method will return false. Otherwise, the method will return true as soon as one filter is satisfied.
- Parameters:
alarm- the alarm- Returns:
- true, if successful
-
-