org.opencms.setup
Class CmsSetupWorkplaceImportThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.opencms.setup.CmsSetupWorkplaceImportThread
All Implemented Interfaces:
java.lang.Runnable

public class CmsSetupWorkplaceImportThread
extends java.lang.Thread

Used for the workplace setup in the OpenCms setup wizard.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 java.io.PrintStream m_tempErr
          Saves the System.err stream so it can be restored.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CmsSetupWorkplaceImportThread(CmsSetupBean setupBean)
          Constructor.
 
Method Summary
 CmsSetupLoggingThread getLoggingThread()
          Returns the logging thread.
 boolean isFinished()
          Returns the status of the logging thread.
 void kill()
          Kills this Thread as well as the included logging Thread.
 void printToStdOut(java.lang.String str)
          Write somthing to System.out during setup.
 void run()
           
 
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
 

Field Detail

m_tempErr

public java.io.PrintStream m_tempErr
Saves the System.err stream so it can be restored.

Constructor Detail

CmsSetupWorkplaceImportThread

public CmsSetupWorkplaceImportThread(CmsSetupBean setupBean)
Constructor.

Parameters:
setupBean - the initialized setup bean
Method Detail

getLoggingThread

public CmsSetupLoggingThread getLoggingThread()
Returns the logging thread.

Returns:
the logging thread

isFinished

public boolean isFinished()
Returns the status of the logging thread.

Returns:
the status of the logging thread

kill

public void kill()
Kills this Thread as well as the included logging Thread.


printToStdOut

public void printToStdOut(java.lang.String str)
Write somthing to System.out during setup.

Parameters:
str - the string to write

run

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