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
Constructors Constructor Description RestoreJobBuilder(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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)java.lang.StringgetJobName()-
Methods inherited from class org.duracloud.snapshot.service.impl.AbstractJobBuilder
setThrottleLimitForContentTransfers
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public org.springframework.batch.core.JobParameters buildJobParameters(Restoration entity)
- Specified by:
buildJobParametersin interfaceBatchJobBuilder<Restoration>
-
getJobName
public java.lang.String getJobName()
- Specified by:
getJobNamein interfaceBatchJobBuilder<Restoration>
-
-