Class SnmpConfigManager

    • Constructor Detail

      • SnmpConfigManager

        public SnmpConfigManager​(SnmpConfig config)

        Constructor for SnmpConfigManager.

        Parameters:
        config - a SnmpConfig object.
    • Method Detail

      • mergeIntoConfig

        public void mergeIntoConfig​(Definition eventDef)
        This is the exposed method for moving the data from a configureSNMP event into the SnmpConfig from SnmpPeerFactory.
        Parameters:
        eventDef - a Definition object.
      • removeDefinition

        public boolean removeDefinition​(Definition definition)
        Remove definition from the base config.
        Parameters:
        definition - a @Definition object
        Returns:
        true when definition is removed else false.
      • areEquals

        protected static final <T> boolean areEquals​(T obj1,
                                                     T obj2)
        Checks if the two objects are equal or not. They are equal if
        • obj1 and obj2 are null
        • obj1 and obj2 are not null and obj1.equals(obj2)
        Otherwise they are not equal.
        Parameters:
        obj1 - Object 1
        obj2 - Object 2
        Returns:
        true if obj1 and obj2 are equal, otherwise false.