Module org.snmp4j
Package org.snmp4j.mp

Class CounterSupport

java.lang.Object
org.snmp4j.mp.CounterSupport

public class CounterSupport extends Object
The CounterSupport class provides support to fire CounterEvent to registered listeners.
Version:
3.0
Author:
Frank Fock
  • Field Details

  • Constructor Details

    • CounterSupport

      public CounterSupport()
      Create a new CounterSupport object.
  • Method Details

    • 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.