Class CmsSetupLoggingThread

java.lang.Object
java.lang.Thread
org.opencms.setup.CmsSetupLoggingThread
All Implemented Interfaces:
Runnable

public class CmsSetupLoggingThread extends Thread
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
  • Constructor Details

    • CmsSetupLoggingThread

      Constructor.

      Parameters:
      pipedOut - the output stream to write to
      log - the file name to write the log to (if null, no log is written)
  • Method Details

    • getMessages

      public List<String> getMessages()
      Returns a Vector with the last collected log messages.

      Returns:
      a Vector with the last collected log messages
    • isFinished

      public boolean isFinished()
      Returns "true" if the logging is finished.

      Returns:
      "true" if the logging is finished
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
      See Also:
    • stopThread

      public void stopThread()
      Used to break the loop in the run() method.