Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.boot
Class CmsSetupLoggingThread  view CmsSetupLoggingThread download CmsSetupLoggingThread.java

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.opencms.boot.CmsSetupLoggingThread
All Implemented Interfaces:
java.lang.Runnable

public class CmsSetupLoggingThread
extends java.lang.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.


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.io.LineNumberReader m_LineReader
           
private  java.io.PipedInputStream m_pipedIn
           
private  boolean m_stopThread
           
private static java.util.Vector messages
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CmsSetupLoggingThread(java.io.PipedOutputStream pipedOut)
          Constructor
 
Method Summary
static java.util.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, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, 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

messages

private static java.util.Vector messages

m_pipedIn

private java.io.PipedInputStream m_pipedIn

m_LineReader

private java.io.LineNumberReader m_LineReader

m_stopThread

private boolean m_stopThread
Constructor Detail

CmsSetupLoggingThread

public CmsSetupLoggingThread(java.io.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.


getMessages

public static java.util.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