public class JdbcBatchProgressMonitor extends AbstractBatchProgressMonitor implements IBatchProgressMonitorExt
currentChildren, currentItem, done, endTime, executionId, itemCount, parent, rejectedItems, startTime, successItems, taskName, totalWork, workedUNKNOW| Constructor and Description | 
|---|
JdbcBatchProgressMonitor(String executionId,
                        IBatch batch,
                        BatchDao bachDao)
Default constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
beginTask(String name,
         String description,
         int totalWork)
Begin a task execution. 
 | 
void | 
done()
Set the task is done. 
 | 
void | 
fail(String reason)
Report global failure. 
 | 
void | 
fail(String reason,
    Throwable t)
Report global failure. 
 | 
Batch | 
getBatch()  | 
protected JdbcBatchProgressMonitor | 
getMainMonitor()
Get the top parent. 
 | 
protected JdbcBatchManager | 
getManager()  | 
void | 
message(String message)
Send a message during the task execution. 
 | 
protected IBatchProgressMonitor | 
newInstance(int work)  | 
protected void | 
onBatchEnd()  | 
void | 
reject(String[] itemIds,
      String reason)
Reject a set of items during the task processing. 
 | 
void | 
reject(String[] itemIds,
      String reason,
      Throwable e)
Reject a set of items during the task processing. 
 | 
void | 
reject(String itemId,
      String reason)
Reject one item during the task processing. 
 | 
void | 
reject(String itemId,
      String reason,
      Throwable e)
* Reject one item during the task processing. 
 | 
void | 
setCurrentItem(Object item)
Set the current item which is being processed. 
 | 
protected void | 
setManager(JdbcBatchManager manager)  | 
void | 
worked(int work)
Notify the processing of items. 
 | 
createSubTask, endBatch, endTask, getCurrentItem, getEndDate, getItemCount, getLastMessage, getLastUpdate, getLogger, getParentWork, getProgress, getRejectedItems, getStartDate, getTaskDescription, getTaskGroup, getTaskName, getTotalWork, getWritingDelay, isCancelRequested, isDone, isSuccess, setLogger, setTotalWork, setWritingDelay, touchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetItemCount, getLastMessage, getProgress, getTotalWorkcreateSubTask, getLastUpdate, isCancelRequested, setLoggerpublic void done()
AbstractBatchProgressMonitordone in interface IBatchProgressMonitordone in class AbstractBatchProgressMonitorpublic void fail(String reason)
IBatchProgressMonitorUse this when the batch has issued a major error and cannot continue.
fail in interface IBatchProgressMonitorfail in class AbstractBatchProgressMonitorpublic void fail(String reason, Throwable t)
IBatchProgressMonitorUse this when the batch has issued a major error and cannot continue.
fail in interface IBatchProgressMonitorfail in class AbstractBatchProgressMonitort - Exception which caused the failure.public void reject(String itemId, String reason)
AbstractBatchProgressMonitorUse this when :
reject in interface IBatchProgressMonitorreject in class AbstractBatchProgressMonitoritemId - rejected item idreason - the reasonIBatchProgressMonitor#reject(String, String, Throwable) can be used
      to provide the exception which has caused the failure.public void reject(String[] itemIds, String reason)
AbstractBatchProgressMonitorreject in interface IBatchProgressMonitorreject in class AbstractBatchProgressMonitoritemIds - Array of item ids rejectedreason - the reasonIBatchProgressMonitor.reject(String, String)public void reject(String[] itemIds, String reason, Throwable e)
AbstractBatchProgressMonitorreject in interface IBatchProgressMonitorreject in class AbstractBatchProgressMonitore - ExceptionIBatchProgressMonitor.reject(String, String)public Batch getBatch()
getBatch in class AbstractBatchProgressMonitorpublic void beginTask(String name, String description, int totalWork)
AbstractBatchProgressMonitorbeginTask in interface IBatchProgressMonitorbeginTask in class AbstractBatchProgressMonitorname - task namedescription - task descriptiontotalWork - task amount of work to be doneprotected JdbcBatchProgressMonitor getMainMonitor()
AbstractBatchProgressMonitorgetMainMonitor in class AbstractBatchProgressMonitorpublic void message(String message)
AbstractBatchProgressMonitormessage in interface IBatchProgressMonitormessage in class AbstractBatchProgressMonitormessage - messageprotected IBatchProgressMonitor newInstance(int work)
newInstance in class AbstractBatchProgressMonitorpublic void reject(String itemId, String reason, Throwable e)
AbstractBatchProgressMonitorreject in interface IBatchProgressMonitorreject in class AbstractBatchProgressMonitore - ExceptionIBatchProgressMonitor.reject(String, String)public void setCurrentItem(Object item)
AbstractBatchProgressMonitorsetCurrentItem in interface IBatchProgressMonitorsetCurrentItem in class AbstractBatchProgressMonitoritem - current processed itemprotected void onBatchEnd()
onBatchEnd in class AbstractBatchProgressMonitorpublic void worked(int work)
worked in interface IBatchProgressMonitorworked in class AbstractBatchProgressMonitorwork - items processedprotected void setManager(JdbcBatchManager manager)
protected JdbcBatchManager getManager()
Copyright © 2010–2016. All rights reserved.