Class SnmpTrapMappingGroup


  • public class SnmpTrapMappingGroup
    extends java.lang.Object
    The Class SnmpTrapMappingGroup.
    Author:
    Alejandro Galue
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger LOG
      The Constant LOG.
    • 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.
      java.util.List<SnmpTrapMapping> getMappings()
      Gets the mappings.
      java.lang.String getName()
      Gets the name.
      java.lang.String getRule()
      Gets the rule.
      void setMappings​(java.util.List<SnmpTrapMapping> mappings)
      Sets the mappings.
      void setName​(java.lang.String name)
      Sets the name.
      void setRule​(java.lang.String rule)
      Sets the rule.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

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

      • SnmpTrapMappingGroup

        public SnmpTrapMappingGroup()
    • 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
      • getMappings

        public java.util.List<SnmpTrapMapping> getMappings()
        Gets the mappings.
        Returns:
        the 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
      • setMappings

        public void setMappings​(java.util.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.