org.opencms.setup
Class CmsSetupLoggingThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.opencms.setup.CmsSetupLoggingThread
All Implemented Interfaces:
java.lang.Runnable

public class CmsSetupLoggingThread
extends java.lang.Thread

Logging Thread which collects the output from CmsSetupThread and stores it in a Vector that the OpenCms setup wizard can read via the getMessages() method.

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

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CmsSetupLoggingThread(java.io.PipedOutputStream pipedOut, java.lang.String log)
          Constructor.
 
Method Summary
 java.util.List getMessages()
          Returns a Vector with the last collected log messages.
 boolean isFinished()
          Returns "true" if the logging is finished.
 void run()
           
 void stopThread()
          Used to break the loop in the run() method.
 
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
 

Constructor Detail

CmsSetupLoggingThread

public CmsSetupLoggingThread(java.io.PipedOutputStream pipedOut,
                             java.lang.String log)
Constructor.

Parameters:
pipedOut - the output stream to write to
log - the file name to write the log to (if null, no log is written)
Method Detail

getMessages

public java.util.List getMessages()
Returns a Vector with the last collected log messages.

Returns:
a Vector with the last collected log messages

isFinished

public boolean isFinished()
Returns "true" if the logging is finished.

Returns:
"true" if the logging is finished

run

public void run()
See Also:
Runnable.run()

stopThread

public void stopThread()
Used to break the loop in the run() method.