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.Logger
LOG
The Constant LOG.
-
Constructor Summary
Constructors Constructor Description SnmpTrapMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(NorthboundAlarm alarm)
Verifies if the mapping object accepts a given northbound alarm.String
getEnterpriseOid()
Gets the enterprise OID.Integer
getGeneric()
Gets the generic.String
getName()
Gets the name.List<Parm>
getParams(NorthboundAlarm alarm)
Gets the parameters list.String
getRule()
Gets the rule.Integer
getSpecific()
Gets the specific.List<VarbindMapping>
getVarbindMappings()
Gets the varbind mappings.void
setEnterpriseOid(String enterpriseOid)
Sets the enterprise OID.void
setGeneric(Integer generic)
Sets the generic.void
setName(String name)
Sets the name.void
setRule(String rule)
Sets the rule.void
setSpecific(Integer specific)
Sets the specific.void
setVarbindMappings(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
-
-