|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.mp.CounterSupport
public class CounterSupport
The CounterSupport class provides support to fire
CounterEvent to registered listeners.
| Field Summary | |
|---|---|
protected static CounterSupport |
instance
|
| Constructor Summary | |
|---|---|
protected |
CounterSupport()
|
| Method Summary | |
|---|---|
void |
addCounterListener(CounterListener listener)
Adds a CounterListener. |
void |
fireIncrementCounter(CounterEvent event)
Inform all registered listeners that the supplied counter needs to be incremented. |
static CounterSupport |
getInstance()
Gets the counter support singleton. |
void |
removeCounterListener(CounterListener listener)
Removes a previously added CounterListener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static CounterSupport instance
| Constructor Detail |
|---|
protected CounterSupport()
| Method Detail |
|---|
public static CounterSupport getInstance()
CounterSupport instance.public void addCounterListener(CounterListener listener)
CounterListener.
listener - a CounterListener instance that needs to be informed when
a counter needs to be incremented.public void removeCounterListener(CounterListener listener)
CounterListener.
listener - a CounterListener instance.public void fireIncrementCounter(CounterEvent event)
event - a CounterEvent containing information about the counter to
be incremented.
|
Copyright 2003-2009 Frank Fock and Jochen Katz (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||