Package org.opencms.setup
Class CmsUpdateThread
java.lang.Object
java.lang.Thread
org.opencms.setup.CmsUpdateThread
- All Implemented Interfaces:
Runnable
Used for the OpenCms workplace update wizard.
- Since:
- 6.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionSaves the System.err stream so it can be restored.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the logging thread.boolean
Returns the status of the logging thread.void
kill()
Kills this Thread as well as the included logging Thread.void
printToStdOut
(String str) Write somthing to System.out during setup.void
run()
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
-
Field Details
-
m_tempErr
Saves the System.err stream so it can be restored.
-
-
Constructor Details
-
CmsUpdateThread
Constructor.- Parameters:
updateBean
- the initialized update bean
-
-
Method Details
-
getLoggingThread
Returns the logging thread.- Returns:
- the logging thread
-
isFinished
Returns the status of the logging thread.- Returns:
- the status of the logging thread
-
kill
Kills this Thread as well as the included logging Thread. -
printToStdOut
Write somthing to System.out during setup.- Parameters:
str
- the string to write
-
run
-