|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.monitoring.impl.monitors.AbstractMonitor
org.apache.commons.monitoring.impl.monitors.ObservableMonitor
public abstract class ObservableMonitor
Monitor implementation with support for listeners
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.commons.monitoring.Monitor |
|---|
Monitor.Key, Monitor.Listener, Monitor.Observable |
| Field Summary |
|---|
| Fields inherited from interface org.apache.commons.monitoring.Monitor |
|---|
CONCURRENCY, FAILURES, PERFORMANCES |
| Constructor Summary | |
|---|---|
ObservableMonitor(Monitor.Key key)
Constructor |
|
| Method Summary | ||
|---|---|---|
void |
addListener(Monitor.Listener listener)
|
|
protected
|
register(T value)
Register the StatValue for the role, if none was registered before |
|
void |
removeListener(Monitor.Listener listener)
|
|
| Methods inherited from class org.apache.commons.monitoring.impl.monitors.AbstractMonitor |
|---|
getCounter, getCounter, getGauge, getGauge, getKey, getRoles, getValue, getValue, getValues, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.monitoring.Monitor |
|---|
getCounter, getCounter, getGauge, getGauge, getKey, getRoles, getValue, getValue, getValues, reset |
| Constructor Detail |
|---|
public ObservableMonitor(Monitor.Key key)
key - the monitor identifier| Method Detail |
|---|
protected <T extends StatValue> T register(T value)
register in class AbstractMonitorvalue - role -
public void addListener(Monitor.Listener listener)
addListener in interface Monitor.Observablelistener - listener to get registeredpublic void removeListener(Monitor.Listener listener)
removeListener in interface Monitor.Observablelistener - listener to get removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||