Module org.snmp4j
Package org.snmp4j.mp

Class CounterSupport


  • public class CounterSupport
    extends java.lang.Object
    The CounterSupport class provides support to fire CounterEvent to registered listeners.
    Version:
    3.0
    Author:
    Frank Fock
    • Constructor Detail

      • CounterSupport

        protected CounterSupport()
    • Method Detail

      • getInstance

        public static CounterSupport getInstance()
        Gets the counter support singleton.
        Returns:
        the CounterSupport instance.
      • addCounterListener

        public void addCounterListener​(CounterListener listener)
        Adds a CounterListener.
        Parameters:
        listener - a CounterListener instance that needs to be informed when a counter needs to be incremented.
      • removeCounterListener

        public void removeCounterListener​(CounterListener listener)
        Removes a previously added CounterListener.
        Parameters:
        listener - a CounterListener instance.
      • fireIncrementCounter

        public void fireIncrementCounter​(CounterEvent event)
        Inform all registered listeners that the supplied counter needs to be incremented.
        Parameters:
        event - a CounterEvent containing information about the counter to be incremented.