public class SimpleLogBasedDataLoaderListenerImpl extends SimpleLogBasedProgressListenerImpl implements DataLoaderListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
continueOnError(long errs, long progress, Object offender, 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, String mesg)
This method reports the current progress.
|
long |
reportDataLoaderFrequency()
Returns a positive integer as the frequency of progress reporting.
|
reportProgressFrequencyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreportProgressFrequency
public boolean continueOnError(long errs,
long progress,
Object offender,
String mesg)
continueOnError in interface DataLoaderListenererrs - 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 true
public void progressTo(long progress,
String mesg)
progressTo in interface ProgressListenerprogressTo in class SimpleLogBasedProgressListenerImplprogress - 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()
Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.