Class SnmpTrapMapping
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.snmptrap.SnmpTrapMapping
-
public class SnmpTrapMapping extends Object
The Class SnmpTrapMapping.- Author:
- Alejandro Galue
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGThe Constant LOG.
-
Constructor Summary
Constructors Constructor Description SnmpTrapMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(NorthboundAlarm alarm)Verifies if the mapping object accepts a given northbound alarm.StringgetEnterpriseOid()Gets the enterprise OID.IntegergetGeneric()Gets the generic.StringgetName()Gets the name.List<Parm>getParams(NorthboundAlarm alarm)Gets the parameters list.StringgetRule()Gets the rule.IntegergetSpecific()Gets the specific.List<VarbindMapping>getVarbindMappings()Gets the varbind mappings.voidsetEnterpriseOid(String enterpriseOid)Sets the enterprise OID.voidsetGeneric(Integer generic)Sets the generic.voidsetName(String name)Sets the name.voidsetRule(String rule)Sets the rule.voidsetSpecific(Integer specific)Sets the specific.voidsetVarbindMappings(List<VarbindMapping> varbindMappings)Sets the varbind mappings.
-
-
-
Method Detail
-
getName
public String getName()
Gets the name.- Returns:
- the name
-
getRule
public String getRule()
Gets the rule.- Returns:
- the rule
-
getEnterpriseOid
public String getEnterpriseOid()
Gets the enterprise OID.- Returns:
- the enterprise OID
-
getGeneric
public Integer getGeneric()
Gets the generic.- Returns:
- the generic
-
getSpecific
public Integer getSpecific()
Gets the specific.- Returns:
- the specific
-
getVarbindMappings
public List<VarbindMapping> getVarbindMappings()
Gets the varbind mappings.- Returns:
- the varbind 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
-
setEnterpriseOid
public void setEnterpriseOid(String enterpriseOid)
Sets the enterprise OID.- Parameters:
enterpriseOid- the new enterprise OID
-
setGeneric
public void setGeneric(Integer generic)
Sets the generic.- Parameters:
generic- the new generic
-
setSpecific
public void setSpecific(Integer specific)
Sets the specific.- Parameters:
specific- the new specific
-
setVarbindMappings
public void setVarbindMappings(List<VarbindMapping> varbindMappings)
Sets the varbind mappings.- Parameters:
varbindMappings- the new varbind mappings
-
accepts
public boolean accepts(NorthboundAlarm alarm)
Verifies if the mapping object accepts a given northbound alarm.- Parameters:
alarm- the northbound alarm- Returns:
- true, if the alarm is accepted
-
getParams
public List<Parm> getParams(NorthboundAlarm alarm)
Gets the parameters list.- Parameters:
alarm- the northbound alarm- Returns:
- the parameters
-
-