Package org.opencms.setup
Class CmsSetupLoggingThread
java.lang.Object
java.lang.Thread
org.opencms.setup.CmsSetupLoggingThread
- All Implemented Interfaces:
Runnable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a Vector with the last collected log messages.boolean
Returns"true"
if the logging is finished.void
run()
void
Used to break the loop in the run() method.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
CmsSetupLoggingThread
Constructor.- Parameters:
pipedOut
- the output stream to write tolog
- the file name to write the log to (if null, no log is written)
-
-
Method Details
-
getMessages
Returns a Vector with the last collected log messages.- Returns:
- a Vector with the last collected log messages
-
isFinished
Returns"true"
if the logging is finished.- Returns:
"true"
if the logging is finished
-
run
-
stopThread
Used to break the loop in the run() method.
-