|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jrockit.mc.flightrecorder.util.PrintStreamProgressMonitor
public final class PrintStreamProgressMonitor
Simple IProgressMonitor
that just write progress information to
System.err or System.out, by default.
FIXME: Better handling i18n
Constructor Summary | |
---|---|
PrintStreamProgressMonitor()
|
Method Summary | |
---|---|
void |
beginTask(int workUnits,
java.lang.String formatString)
Called when a task begins. |
boolean |
cancel()
Cancels the current task. |
void |
done()
Finished with all the work |
void |
doWork(int work)
Do some work |
void |
endTask()
Called when the current task is finished |
void |
log(Severity severity,
java.lang.String message,
java.lang.Throwable te)
Logs an error/warning |
void |
setPrintStream(java.io.PrintStream stream)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrintStreamProgressMonitor()
Method Detail |
---|
public boolean cancel()
IProgressMonitor
cancel
in interface IProgressMonitor
public void setPrintStream(java.io.PrintStream stream)
public void endTask()
IProgressMonitor
endTask
in interface IProgressMonitor
public void doWork(int work)
IProgressMonitor
doWork
in interface IProgressMonitor
work
- the number of units to workpublic void done()
IProgressMonitor
done
in interface IProgressMonitor
public void beginTask(int workUnits, java.lang.String formatString)
IProgressMonitor
beginTask
in interface IProgressMonitor
public void log(Severity severity, java.lang.String message, java.lang.Throwable te)
IProgressMonitor
log
in interface IProgressMonitor
severity
- the severitymessage
- the messagete
- an optional Throwable
. Null if N/A
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |