public class ConsoleMonitor extends AbstractProgressMonitor
ProgressMonitor implementation that outputs the progress to stdout. A suppress duration
specifies how long new updates are not printed.| Constructor and Description |
|---|
ConsoleMonitor()
Create a new
ConsoleMonitor and initialize it. |
ConsoleMonitor(long suppressDuration)
Create a new
ConsoleMonitor and initialize it with the specified suppress duration. |
| 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 ConsoleMonitor()
ConsoleMonitor and initialize it. Default range is from 0 to 100.
Default suppress duration is one second.public ConsoleMonitor(long suppressDuration)
ConsoleMonitor and initialize it with the specified suppress duration.
Default range is from 0 to 100.suppressDuration - The suppress duration.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 © 2013 dontdrinkandroot. All Rights Reserved.