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