|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.gcube.informationsystem.cache.consistency.manager.poll.CacheRefresher
public class CacheRefresher
Basic cache refreshment component. It operates based on a simple poll algorithm. On regular time intervals it retrieves from the IS server all the RIs of the services registered to be monitored. It build a new cache object on every refresh cycle and simply assigns it to the original cache object.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
CacheRefresher(long ttr,
SrvRegistry registry)
Public constructor |
|
| Method Summary | |
|---|---|
protected java.util.Date |
getLastRefreshDate()
|
protected long |
getRefreshCycleTime()
|
protected long |
getTtr()
|
protected boolean |
isRefreshing()
|
void |
run()
Thread operation cycle |
protected void |
setRefreshing(boolean isRefreshing)
|
protected void |
setTtr(long ttr)
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 |
| Constructor Detail |
|---|
public CacheRefresher(long ttr,
SrvRegistry registry)
throws java.lang.Exception
ttr - ttrregistry - SrvRegistry instance
java.lang.Exception - in case of error| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprotected void setRefreshing(boolean isRefreshing)
isRefreshing - the isRefreshing to setprotected boolean isRefreshing()
protected void setTtr(long ttr)
ttr - the ttr to setprotected long getTtr()
protected long getRefreshCycleTime()
protected java.util.Date getLastRefreshDate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||