|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.opencms.setup.CmsSetupLoggingThread
public class CmsSetupLoggingThread
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
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, 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 |
Constructor Detail |
---|
public CmsSetupLoggingThread(java.io.PipedOutputStream pipedOut, java.lang.String log)
pipedOut
- the output stream to write tolog
- the file name to write the log to (if null, no log is written)Method Detail |
---|
public java.util.List getMessages()
public boolean isFinished()
"true"
if the logging is finished.
"true"
if the logging is finishedpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Runnable.run()
public void stopThread()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |