|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.abraracourcix.alipes.monitors.AbstractMonitor
org.abraracourcix.alipes.listeners.status.StatusListener
This listener merely retains a list of the latest statuses, and the times they were received. It will also alert any listeners to the change of state.
| Nested Class Summary | |
class |
StatusListener.ResourceInfo
|
| Constructor Summary | |
StatusListener(Listener listener)
Constructor |
|
| Method Summary | |
void |
eventOccurred(Event event,
java.lang.Object resource)
Log the event, and keep a record of it |
java.util.Map |
getStatuses()
|
| Methods inherited from class org.abraracourcix.alipes.monitors.AbstractMonitor |
signalListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StatusListener(Listener listener)
listener - who's listening?| Method Detail |
public void eventOccurred(Event event,
java.lang.Object resource)
throws ListenerException
eventOccurred in interface Listenerevent - what has happenedresource - to what
ListenerException - a listener may throw a subclass of ListenerException
if something goes wrong when it tries to log the exception.Listener.eventOccurred(org.abraracourcix.alipes.common.Event,
java.lang.Object)public java.util.Map getStatuses()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||