Class SnmpTrapMappingGroup
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.snmptrap.SnmpTrapMappingGroup
-
public class SnmpTrapMappingGroup extends Object
The Class SnmpTrapMappingGroup.- Author:
- Alejandro Galue
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
The Constant LOG.
-
Constructor Summary
Constructors Constructor Description SnmpTrapMappingGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(NorthboundAlarm alarm)
Verifies if the mapping group object accepts a given northbound alarm.List<SnmpTrapMapping>
getMappings()
Gets the mappings.String
getName()
Gets the name.String
getRule()
Gets the rule.void
setMappings(List<SnmpTrapMapping> mappings)
Sets the mappings.void
setName(String name)
Sets the name.void
setRule(String rule)
Sets the rule.
-
-
-
Method Detail
-
getName
public String getName()
Gets the name.- Returns:
- the name
-
getRule
public String getRule()
Gets the rule.- Returns:
- the rule
-
getMappings
public List<SnmpTrapMapping> getMappings()
Gets the mappings.- Returns:
- the mappings
-
setName
public void setName(String name)
Sets the name.- Parameters:
name
- the new name
-
setRule
public void setRule(String rule)
Sets the rule.- Parameters:
rule
- the new rule
-
setMappings
public void setMappings(List<SnmpTrapMapping> mappings)
Sets the mappings.- Parameters:
mappings
- the new mappings
-
accepts
public boolean accepts(NorthboundAlarm alarm)
Verifies if the mapping group object accepts a given northbound alarm.- Parameters:
alarm
- the northbound alarm- Returns:
- true, if the alarm is accepted.
-
-