Class SnmpTrapMapping


  • public class SnmpTrapMapping
    extends java.lang.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()  
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
        The Constant LOG.
    • Constructor Detail

      • SnmpTrapMapping

        public SnmpTrapMapping()
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name.
        Returns:
        the name
      • getRule

        public java.lang.String getRule()
        Gets the rule.
        Returns:
        the rule
      • getEnterpriseOid

        public java.lang.String getEnterpriseOid()
        Gets the enterprise OID.
        Returns:
        the enterprise OID
      • getGeneric

        public java.lang.Integer getGeneric()
        Gets the generic.
        Returns:
        the generic
      • getSpecific

        public java.lang.Integer getSpecific()
        Gets the specific.
        Returns:
        the specific
      • getVarbindMappings

        public java.util.List<VarbindMapping> getVarbindMappings()
        Gets the varbind mappings.
        Returns:
        the varbind mappings
      • setName

        public void setName​(java.lang.String name)
        Sets the name.
        Parameters:
        name - the new name
      • setRule

        public void setRule​(java.lang.String rule)
        Sets the rule.
        Parameters:
        rule - the new rule
      • setEnterpriseOid

        public void setEnterpriseOid​(java.lang.String enterpriseOid)
        Sets the enterprise OID.
        Parameters:
        enterpriseOid - the new enterprise OID
      • setGeneric

        public void setGeneric​(java.lang.Integer generic)
        Sets the generic.
        Parameters:
        generic - the new generic
      • setSpecific

        public void setSpecific​(java.lang.Integer specific)
        Sets the specific.
        Parameters:
        specific - the new specific
      • setVarbindMappings

        public void setVarbindMappings​(java.util.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 java.util.List<Parm> getParams​(NorthboundAlarm alarm)
        Gets the parameters list.
        Parameters:
        alarm - the northbound alarm
        Returns:
        the parameters