Package org.opencms.setup.db
Class CmsUpdateDBThread
- java.lang.Object
-
- java.lang.Thread
-
- org.opencms.setup.db.CmsUpdateDBThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class CmsUpdateDBThread extends java.lang.Thread
Used for the workplace setup in the OpenCms setup wizard.- Since:
- 6.0.0
-
-
Field Summary
Fields Modifier and Type Field Description java.io.PrintStream
m_tempErr
Saves the System.err stream so it can be restored.
-
Constructor Summary
Constructors Constructor Description CmsUpdateDBThread(CmsUpdateBean updateBean)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsSetupLoggingThread
getLoggingThread()
Returns the logging thread.java.io.OutputStream
getOut()
boolean
isFinished()
Returns the status of the logging thread.void
kill()
Kills this Thread as well as the included logging Thread.void
run()
void
run(java.io.PrintStream out)
-
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 Detail
-
m_tempErr
public java.io.PrintStream m_tempErr
Saves the System.err stream so it can be restored.
-
-
Constructor Detail
-
CmsUpdateDBThread
public CmsUpdateDBThread(CmsUpdateBean updateBean)
Constructor.- Parameters:
updateBean
- the initialized update bean
-
-
Method Detail
-
getLoggingThread
public CmsSetupLoggingThread getLoggingThread()
Returns the logging thread.- Returns:
- the logging thread
-
getOut
public java.io.OutputStream getOut()
-
isFinished
public boolean isFinished()
Returns the status of the logging thread.- Returns:
- the status of the logging thread
-
kill
public void kill()
Kills this Thread as well as the included logging Thread.
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
- See Also:
Runnable.run()
-
run
public void run(java.io.PrintStream out)
- See Also:
Runnable.run()
-
-