com.opencms.boot
Class CmsSetupThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.opencms.boot.CmsSetupThread
All Implemented Interfaces:
Runnable

public class CmsSetupThread
extends Thread

Thread which first redirects System.out and System.err to a new outputstream. The CmsSetupLoggingThread gets the outputstream and gets started. The import of the opencms workplace is started so the Logging Thread can collect all the output. After the work is done, System.out and System.err are restored.

Author:
Magnus Meurer

Field Summary
static PrintStream m_tempErr
          Gets the System.err stream so it can be restored
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CmsSetupThread()
          Constructor
 
Method Summary
 boolean finished()
          Returns the status of the logging thread
 void reset()
          Cleans up
 void run()
           
 void setBasePath(String basePath)
          Set the base path to the given value
 void stopLoggingThread()
          stop logging thread
 
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
 

Field Detail

m_tempErr

public static PrintStream m_tempErr
Gets the System.err stream so it can be restored

Constructor Detail

CmsSetupThread

public CmsSetupThread()
Constructor

Method Detail

run

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

setBasePath

public void setBasePath(String basePath)
Set the base path to the given value


finished

public boolean finished()
Returns the status of the logging thread


stopLoggingThread

public void stopLoggingThread()
stop logging thread


reset

public void reset()
Cleans up