public class SimpleLogBasedDataLoaderListenerImpl extends SimpleLogBasedProgressListenerImpl implements DataLoaderListener
Modifier and Type | Method and Description |
---|---|
boolean |
continueOnError(long errs, long progress, java.lang.Object offender, java.lang.String mesg)
This method returns true if the data loading is to be continued upon encountering this error.
|
static SimpleLogBasedDataLoaderListenerImpl |
getInstance(long freq)
This method returns an instance of DataLoaderListener
|
static SimpleLogBasedDataLoaderListenerImpl |
getInstance(long freq, boolean continueOnError)
This method returns an instance of DataLoaderListener
|
void |
progressTo(long progress, java.lang.String mesg)
This method reports the current progress.
|
long |
reportDataLoaderFrequency()
Returns a positive integer as the frequency of progress reporting.
|
reportProgressFrequency
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reportProgressFrequency
public boolean continueOnError(long errs, long progress, java.lang.Object offender, java.lang.String mesg)
continueOnError
in interface DataLoaderListener
errs
- number of errors encountered so far.progress
- a long value indicating the current progress. It must be a positive integer.offender
- the object value that triggers an error conditionmesg
- an optional string value describing the current progress and error condition.public static SimpleLogBasedDataLoaderListenerImpl getInstance(long freq)
freq
- frequency of progress reporting. This must be a positive integer.public static SimpleLogBasedDataLoaderListenerImpl getInstance(long freq, boolean continueOnError)
freq
- frequency of progress reporting. This must be a positive integer.continueOnError
- continue on error if this flag is set to truepublic void progressTo(long progress, java.lang.String mesg)
progressTo
in interface ProgressListener
progressTo
in class SimpleLogBasedProgressListenerImpl
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 reportDataLoaderFrequency()