DefaultCounterListener
is the default implementation of the CounterListener
interface. For any counter incrementation event it checks whether the referenced counter object already exists. If not, it will be created and initialized with one. Otherwise, the current value will be incremented by one. In either case, the current value will be returned in the event object. To use a DefaultCounterListener
with SNMP4J, add it to the default CounterSupport
by:
CounterSupport.getInstance().addCounterListener(new DefaultCounterListener());@author Frank Fock @version 1.0.1
|
|