|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread com.isti.util.IstiThread com.isti.util.IstiNotifyThread com.isti.util.ExtendedArchiveManager.AbstractWorkerThread
Class AbstractWorkerThread is a general worker thread for archive managers.
Field Summary | |
protected java.util.Vector |
archiveManagerVector
|
protected static long |
DEF_WORKER_SLEEPTIME
|
protected long |
sleepTime
|
Fields inherited from class com.isti.util.IstiThread |
DEFAULT_TERMINATE_WAIT_TIME, terminateFlag |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ExtendedArchiveManager.AbstractWorkerThread(java.lang.String name,
long sleepTime)
|
Method Summary | |
void |
addArchiveManager(ExtendedArchiveManager am)
Adds an archive manager if it has not already been added. |
ExtendedArchiveManager |
getArchiveManager(int index)
Gets the archive manager for the specified index. |
int |
getNumArchiveManagers()
Gets the number of archive managers handled by this class. |
abstract void |
processArchiveManager(ExtendedArchiveManager am)
Processes an archive manager. |
void |
removeArchiveManager(ExtendedArchiveManager am)
Removes an archive manager. |
void |
run()
Runs the worker thread. |
Methods inherited from class com.isti.util.IstiNotifyThread |
sleep, terminate |
Methods inherited from class com.isti.util.IstiThread |
clearThreadWaitNotifyFlag, isTerminated, nextThreadNum, notifyThread, start, terminate, waitForNotify, waitForNotify, waitForTerminate, waitForTerminate, wasStarted |
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, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final long DEF_WORKER_SLEEPTIME
protected final long sleepTime
protected java.util.Vector archiveManagerVector
Constructor Detail |
public ExtendedArchiveManager.AbstractWorkerThread(java.lang.String name, long sleepTime)
Method Detail |
public void addArchiveManager(ExtendedArchiveManager am)
am
- the archive manager.public ExtendedArchiveManager getArchiveManager(int index)
index
- index of archive manager to return.
public int getNumArchiveManagers()
public abstract void processArchiveManager(ExtendedArchiveManager am)
am
- the archive manager.public void removeArchiveManager(ExtendedArchiveManager am)
am
- the archive manager.public void run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |