org.opencms.main
Class CmsThreadStore

java.lang.Object
  extended by java.lang.Thread
      extended by org.opencms.main.CmsThreadStore
All Implemented Interfaces:
Runnable

public class CmsThreadStore
extends Thread

The OpenCms Thread store where all system Threads are maintained.

Since:
6.0.0
Version:
$Revision: 1.15 $
Author:
Alexander Kandzior

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected CmsThreadStore()
          Hides the public constructor.
 
Method Summary
 void addThread(A_CmsReportThread thread)
          Adds a Thread to this Thread store.
 A_CmsReportThread retrieveThread(CmsUUID key)
          Retrieves a Thread from this Thread store.
 void run()
           
protected  void shutDown()
          Shut down this thread store.
 
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

CmsThreadStore

protected CmsThreadStore()
Hides the public constructor.

Method Detail

addThread

public void addThread(A_CmsReportThread thread)
Adds a Thread to this Thread store.

Parameters:
thread - the Thread to add

retrieveThread

public A_CmsReportThread retrieveThread(CmsUUID key)
Retrieves a Thread from this Thread store.

Parameters:
key - the key of the Thread to retrieve
Returns:
the Thread form this Thread store that matches the given key

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Runnable.run()

shutDown

protected void shutDown()
Shut down this thread store.