Package org.snmp4j.mp
Class CounterSupport
java.lang.Object
org.snmp4j.mp.CounterSupport
The
CounterSupport class provides support to fire
CounterEvent to registered listeners.- Version:
- 1.0
- Author:
- Frank Fock
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCounterListener(CounterListener listener) Adds aCounterListener.voidfireIncrementCounter(CounterEvent event) Inform all registered listeners that the supplied counter needs to be incremented.static CounterSupportGets the counter support singleton.voidremoveCounterListener(CounterListener listener) Removes a previously addedCounterListener.
-
Field Details
-
instance
-
-
Constructor Details
-
CounterSupport
protected CounterSupport()
-
-
Method Details
-
getInstance
Gets the counter support singleton.- Returns:
- the
CounterSupportinstance.
-
addCounterListener
Adds aCounterListener.- Parameters:
listener- aCounterListenerinstance that needs to be informed when a counter needs to be incremented.
-
removeCounterListener
Removes a previously addedCounterListener.- Parameters:
listener- aCounterListenerinstance.
-
fireIncrementCounter
Inform all registered listeners that the supplied counter needs to be incremented.- Parameters:
event- aCounterEventcontaining information about the counter to be incremented.
-