protected abstract static class ExtendedArchiveManager.AbstractWorkerThread extends IstiNotifyThread
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
archiveManagerVector |
protected static long |
DEF_WORKER_SLEEPTIME |
protected long |
sleepTime |
DEFAULT_TERMINATE_WAIT_TIME, terminateFlag
Constructor and Description |
---|
AbstractWorkerThread(java.lang.String name,
long sleepTime) |
Modifier and Type | Method and Description |
---|---|
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.
|
sleep, terminate
clearThreadWaitNotifyFlag, isTerminated, nextThreadNum, notifyThread, start, terminate, waitForNotify, waitForNotify, waitForTerminate, waitForTerminate, wasStarted
activeCount, checkAccess, clone, 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, stop, stop, suspend, toString, yield
protected static final long DEF_WORKER_SLEEPTIME
protected final long sleepTime
protected java.util.Vector archiveManagerVector
public AbstractWorkerThread(java.lang.String name, long sleepTime)
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()
run
in interface java.lang.Runnable
run
in class java.lang.Thread