|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--org.apache.jetspeed.services.registry.DatabaseRegistryWatcher
Registry watcher for Database Registry service. Keeps any cached registry entries refreshed with backend database.
| Field Summary | |
static int |
SCAN_RATE
Minimum scan rate for evaluating file refresh |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
DatabaseRegistryWatcher()
Creates a default RegistryWatcher |
|
| Method Summary | |
void |
changeBase(java.util.Vector f)
Change the base file to be monitored by this watcher |
long |
getRefreshRate()
|
org.apache.jetspeed.services.registry.FileRegistry |
getSubscriber()
|
void |
run()
Main routine for the monitor which periodically checks whether the filex have been modified. |
void |
setDone()
Mark that the watching thread should be stopped |
void |
setRefreshRate(long refresh)
Sets the refresh rate for this watcher |
void |
setSubscriber(org.apache.jetspeed.services.registry.FileRegistry registry)
Modifies the subscriber to this Watcher |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SCAN_RATE
| Constructor Detail |
public DatabaseRegistryWatcher()
| Method Detail |
public void setSubscriber(org.apache.jetspeed.services.registry.FileRegistry registry)
registry - the new registry subscriberpublic org.apache.jetspeed.services.registry.FileRegistry getSubscriber()
public void setRefreshRate(long refresh)
refresh - the refresh rate in secondspublic long getRefreshRate()
public void changeBase(java.util.Vector f)
f - the file to monitorpublic void run()
Main routine for the monitor which periodically checks whether the filex have been modified.
The algorithm used does not guarantee a constant refresh rate between invocations.
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void setDone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||