|
|||||||||||
| 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.monitors.PollingMonitor
adds the threaded stuff required to do the polling of the resource Clients of subclasses need to call start() to kick off the class.
| Constructor Summary | |
PollingMonitor(Listener listener,
long pollingFrequency)
Constructor |
|
| Method Summary | |
long |
getPollingFrequency()
getter |
abstract void |
pole()
For subclasses to implement. |
void |
run()
Standard Thread run method |
void |
setPollingFrequency(long seconds)
Setter |
void |
start()
Start polling. |
| 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 PollingMonitor(Listener listener,
long pollingFrequency)
listener - who's listening to me?pollingFrequency - in seconds| Method Detail |
public final void start()
public abstract void pole()
public final void setPollingFrequency(long seconds)
seconds - between pollspublic final long getPollingFrequency()
public final void run()
run in interface java.lang.Runnable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||