public class CmsSetupLoggingThread
extends java.lang.Thread
构造器和说明 |
---|
CmsSetupLoggingThread(java.io.PipedOutputStream pipedOut,
java.lang.String log)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<java.lang.String> |
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.
|
activeCount, checkAccess, clone, 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
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)public java.util.List<java.lang.String> getMessages()
public boolean isFinished()
"true"
if the logging is finished."true"
if the logging is finishedpublic void run()
run
在接口中 java.lang.Runnable
run
在类中 java.lang.Thread
Runnable.run()
public void stopThread()