Class JobTemplateImpl
java.lang.Object
com.northconcepts.datapipeline.job.JobTemplateImpl
- All Implemented Interfaces:
JobTemplate
The default
JobTemplate, which runs each transfer as a Job.-
Field Summary
Fields inherited from interface com.northconcepts.datapipeline.job.JobTemplate
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontransfer(DataReader reader, DataWriter writer) Transfers all records from the reader to the writer on the current thread and returns the finished job.<R extends DataReader,W extends DataWriter>
Jobtransfer(R reader, W writer, boolean async, JobCallback<R, W> callback) Transfers all records from the reader to the writer, on a new thread ifasyncis true, reporting progress and the outcome to the callback.
-
Constructor Details
-
JobTemplateImpl
public JobTemplateImpl()
-
-
Method Details
-
transfer
Description copied from interface:JobTemplateTransfers all records from the reader to the writer on the current thread and returns the finished job.- Specified by:
transferin interfaceJobTemplate- Throws:
DataException
-
transfer
public <R extends DataReader,W extends DataWriter> Job transfer(R reader, W writer, boolean async, JobCallback<R, W> callback) throws DataExceptionDescription copied from interface:JobTemplateTransfers all records from the reader to the writer, on a new thread ifasyncis true, reporting progress and the outcome to the callback.- Specified by:
transferin interfaceJobTemplate- Throws:
DataException
-