public class SimpleLogBasedProgressListenerImpl extends java.lang.Object implements ProgressListener
Modifier and Type | Method and Description |
---|---|
static SimpleLogBasedProgressListenerImpl |
getInstance(long freq)
This method returns an instance of ProgressListener
|
void |
progressTo(long progress, java.lang.String mesg)
This method reports the current progress.
|
long |
reportProgressFrequency()
Returns a positive integer as the frequency of progress reporting.
|
public static SimpleLogBasedProgressListenerImpl getInstance(long freq)
freq
- frequency of progress reporting. This must be a positive integer.public void progressTo(long progress, java.lang.String mesg)
progressTo
in interface ProgressListener
progress
- a long value indicating the current progress. It must be a positive integer.mesg
- an optional string value describing the current progress.public long reportProgressFrequency()
reportProgressFrequency
in interface ProgressListener