- java.lang.Object
-
- org.duracloud.snapshot.service.impl.AbstractJobBuilder
-
- org.duracloud.snapshot.service.impl.RestoreJobBuilder
-
- All Implemented Interfaces:
BatchJobBuilder<org.duracloud.snapshot.db.model.Restoration>
@Component public class RestoreJobBuilder extends AbstractJobBuilder implements BatchJobBuilder<org.duracloud.snapshot.db.model.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, org.duracloud.snapshot.service.RestoreManager restoreManager, org.duracloud.snapshot.db.repo.SnapshotContentItemRepo snapshotContentItemRepo, StoreClientHelper storeClientHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.batch.core.JobParametersbuildIdentifyingJobParameters(org.duracloud.snapshot.db.model.Restoration restoration)org.springframework.batch.core.JobbuildJob(org.duracloud.snapshot.db.model.Restoration restoration, org.duracloud.snapshot.service.SnapshotJobManagerConfig jobManagerConfig)Creates a job for the specified entity;org.springframework.batch.core.JobParametersbuildJobParameters(org.duracloud.snapshot.db.model.Restoration entity)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, org.duracloud.snapshot.service.RestoreManager restoreManager, org.duracloud.snapshot.db.repo.SnapshotContentItemRepo snapshotContentItemRepo, StoreClientHelper storeClientHelper)
-
-
Method Detail
-
buildJob
public org.springframework.batch.core.Job buildJob(org.duracloud.snapshot.db.model.Restoration restoration, org.duracloud.snapshot.service.SnapshotJobManagerConfig jobManagerConfig) throws org.duracloud.snapshot.SnapshotExceptionDescription copied from interface:BatchJobBuilderCreates a job for the specified entity;- Specified by:
buildJobin interfaceBatchJobBuilder<org.duracloud.snapshot.db.model.Restoration>- Returns:
- a job object.
- Throws:
org.duracloud.snapshot.SnapshotException
-
buildIdentifyingJobParameters
public org.springframework.batch.core.JobParameters buildIdentifyingJobParameters(org.duracloud.snapshot.db.model.Restoration restoration)
- Specified by:
buildIdentifyingJobParametersin interfaceBatchJobBuilder<org.duracloud.snapshot.db.model.Restoration>
-
buildJobParameters
public org.springframework.batch.core.JobParameters buildJobParameters(org.duracloud.snapshot.db.model.Restoration entity)
- Specified by:
buildJobParametersin interfaceBatchJobBuilder<org.duracloud.snapshot.db.model.Restoration>
-
getJobName
public String getJobName()
- Specified by:
getJobNamein interfaceBatchJobBuilder<org.duracloud.snapshot.db.model.Restoration>
-
-