public class LogMonitor extends AbstractProgressMonitor
ProgressMonitor that outputs the progress to a Logger. A suppress duration
specifies how long new updates are not logged. The log level is 'info'.| Constructor and Description |
|---|
LogMonitor()
Construct a LogMonitor with the
Logger corresponding to this class and Log
Level info. |
| 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.
|
org.slf4j.Logger |
getLogger()
Get the logger to log to.
|
long |
getSuppressDuration()
Get current suppress duration.
|
void |
setLogger(org.slf4j.Logger logger)
Set the logger to log to.
|
void |
setSuppressDuration(long suppressDuration)
Set current suppress duration.
|
getMessage, getProgress, getProgressStatus, getRangeEnd, getRangeStart, isDone, setDone, setMessage, setProgress, setRangepublic LogMonitor()
Logger corresponding to this class and Log
Level info. Default suppress duration is 0.protected final void doMessageChanged()
AbstractProgressMonitordoMessageChanged in class AbstractProgressMonitorprotected final void doProgressChanged()
AbstractProgressMonitordoProgressChanged in class AbstractProgressMonitorpublic final void setLogger(org.slf4j.Logger logger)
logger - The logger to log to.public final org.slf4j.Logger getLogger()
public final long getSuppressDuration()
public final void setSuppressDuration(long suppressDuration)
suppressDuration - Current suppress duration.Copyright © 2012. All Rights Reserved.