Class SnapshotJobBuilder
java.lang.Object
org.duracloud.snapshot.service.impl.AbstractJobBuilder
org.duracloud.snapshot.service.impl.SnapshotJobBuilder
- All Implemented Interfaces:
BatchJobBuilder<Snapshot>
@Component
public class SnapshotJobBuilder
extends AbstractJobBuilder
implements BatchJobBuilder<Snapshot>
- Author:
- Daniel Bernstein Date: Feb 19, 2014
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotJobBuilder(SnapshotJobExecutionListener jobListener, org.springframework.batch.core.repository.JobRepository jobRepository, org.springframework.transaction.PlatformTransactionManager transactionManager, org.springframework.core.task.TaskExecutor taskExecutor, SnapshotManager snapshotManager, StoreClientHelper storeClientHelper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.core.JobParametersbuildIdentifyingJobParameters(Snapshot snapshot) org.springframework.batch.core.JobbuildJob(Snapshot snapshot, SnapshotJobManagerConfig config) Creates a job for the specified entity;org.springframework.batch.core.JobParametersbuildJobParameters(Snapshot snapshot) Methods inherited from class org.duracloud.snapshot.service.impl.AbstractJobBuilder
setThrottleLimitForContentTransfers
-
Constructor Details
-
SnapshotJobBuilder
@Autowired public SnapshotJobBuilder(SnapshotJobExecutionListener jobListener, org.springframework.batch.core.repository.JobRepository jobRepository, org.springframework.transaction.PlatformTransactionManager transactionManager, @Qualifier("itemTaskExecutor") org.springframework.core.task.TaskExecutor taskExecutor, SnapshotManager snapshotManager, StoreClientHelper storeClientHelper)
-
-
Method Details
-
buildJob
public org.springframework.batch.core.Job buildJob(Snapshot snapshot, SnapshotJobManagerConfig config) throws SnapshotException Description copied from interface:BatchJobBuilderCreates a job for the specified entity;- Specified by:
buildJobin interfaceBatchJobBuilder<Snapshot>- Returns:
- a job object.
- Throws:
SnapshotException
-
buildIdentifyingJobParameters
public org.springframework.batch.core.JobParameters buildIdentifyingJobParameters(Snapshot snapshot) - Specified by:
buildIdentifyingJobParametersin interfaceBatchJobBuilder<Snapshot>
-
buildJobParameters
- Specified by:
buildJobParametersin interfaceBatchJobBuilder<Snapshot>
-
getJobName
- Specified by:
getJobNamein interfaceBatchJobBuilder<Snapshot>
-