com.opencms.boot
Class CmsSetupLoggingThread

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

public class CmsSetupLoggingThread
extends Thread

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

Author:
Magnus Meurer

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CmsSetupLoggingThread(PipedOutputStream pipedOut)
          Constructor
 
Method Summary
static Vector getMessages()
          Returns a vector containing messages
 boolean getStopThread()
          Indicates if the Thread has been stopped
 void reset()
          Cleans uo
 void run()
          Thread's run() method.
 void stopThread()
          This method breaks 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(PipedOutputStream pipedOut)
Constructor

Method Detail

run

public void run()
Thread's run() method. Gets a line and its number from the LineNumber Reader and stores it in the messages vector.

Specified by:
run in interface Runnable
Overrides:
run in class Thread

getMessages

public static Vector getMessages()
Returns a vector containing messages


stopThread

public void stopThread()
This method breaks the loop in the run() method


getStopThread

public boolean getStopThread()
Indicates if the Thread has been stopped


reset

public void reset()
Cleans uo