public class SingleLineConsoleMonitor extends AbstractProgressMonitor
ProgressMonitor implementation that outputs the progress to stdout on a single line. A
suppress duration specifies how long new updates are not printed.| Constructor and Description |
|---|
SingleLineConsoleMonitor()
Create a new
SingleLineConsoleMonitor and initialize it. |
SingleLineConsoleMonitor(long suppressDuration)
Create a new
SingleLineConsoleMonitor and initialize it with the specified suppress
duration. |
SingleLineConsoleMonitor(long suppressDuration,
int lineLength)
Create a new
SingleLineConsoleMonitor and initialize it with the specified suppress
duration and line length. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doMessageChanged()
Hook that is invoked after the message has changed.
|
protected void |
doProgressChanged()
Hook that is invoked after the progress has changed.
|
long |
getSuppressDuration()
Get current suppress duration.
|
void |
setSuppressDuration(long suppressDuration)
Set current suppress duration.
|
getMessage, getProgress, getProgressStatus, getRangeEnd, getRangeStart, isDone, setDone, setMessage, setProgress, setRangepublic SingleLineConsoleMonitor()
SingleLineConsoleMonitor and initialize it. Default range is from 0 to
100. Default suppress duration is one second. Default line length is 80 characters;public SingleLineConsoleMonitor(long suppressDuration)
SingleLineConsoleMonitor and initialize it with the specified suppress
duration. Default line length is 80 characters. Default range is from 0 to 100.suppressDuration - The suppress duration.public SingleLineConsoleMonitor(long suppressDuration,
int lineLength)
SingleLineConsoleMonitor and initialize it with the specified suppress
duration and line length. Default range is from 0 to 100.suppressDuration - The suppress duration.lineLength - Line length to use.protected final void doMessageChanged()
AbstractProgressMonitordoMessageChanged in class AbstractProgressMonitorprotected final void doProgressChanged()
AbstractProgressMonitordoProgressChanged in class AbstractProgressMonitorpublic final long getSuppressDuration()
public final void setSuppressDuration(long suppressDuration)
suppressDuration - Current suppress duration.Copyright © 2012. All Rights Reserved.