|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--edu.ucsb.adl.middleware.CacheLoaderThread
Background thread that preloads a metadata cache.
This class is implemented as a kind of macro on top of the identifiers and metadata middleware services. As such, it suffers from three limitations:
cache_control servlet. Ideally, permission would
be checked only by the servlet, and service-level permission
checking would be bypassed.
$Log: CacheLoaderThread.java,v $ Revision 1.1 2006/06/30 06:45:51 gjanee Initial revision
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
CacheLoaderThread(edu.ucsb.adl.middleware.Global global,
javax.servlet.ServletRequest request,
java.lang.String collection,
java.lang.String view,
java.lang.String cacheDirectory)
Creates the thread. |
|
| Method Summary | |
java.lang.String |
getCollection()
Returns the collection the thread is operating on. |
java.lang.String |
getException()
Returns the exception that prematurely terminated the thread's processing. |
java.lang.String |
getStatus()
Returns the thread's current state. |
java.lang.String |
getView()
Returns the metadata view the thread is operating on. |
void |
run()
|
void |
stopASAP()
Requests that the thread stop as soon as possible. |
| 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 |
| Constructor Detail |
public CacheLoaderThread(edu.ucsb.adl.middleware.Global global,
javax.servlet.ServletRequest request,
java.lang.String collection,
java.lang.String view,
java.lang.String cacheDirectory)
throws InternalErrorException
global - The global object representing this instance of the middleware.request - The servlet request to use to invoke the middleware services.collection - The collection, e.g., "adl_catalog".view - The metadata view, e.g., "adl:bucket".cacheDirectory - The cache directory pathname.
InternalErrorException - If any error occurs.| Method Detail |
public void stopASAP()
public java.lang.String getStatus()
public java.lang.String getCollection()
public java.lang.String getView()
public java.lang.String getException()
null.public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||