Class SnapshotJobBuilder

  • All Implemented Interfaces:
    BatchJobBuilder<org.duracloud.snapshot.db.model.Snapshot>

    @Component
    public class SnapshotJobBuilder
    extends AbstractJobBuilder
    implements BatchJobBuilder<org.duracloud.snapshot.db.model.Snapshot>
    Author:
    Daniel Bernstein Date: Feb 19, 2014
    • Constructor Detail

      • 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,
                                  org.duracloud.snapshot.service.SnapshotManager snapshotManager,
                                  StoreClientHelper storeClientHelper)
    • Method Detail

      • buildJob

        public org.springframework.batch.core.Job buildJob​(org.duracloud.snapshot.db.model.Snapshot snapshot,
                                                           org.duracloud.snapshot.service.SnapshotJobManagerConfig config)
                                                    throws org.duracloud.snapshot.SnapshotException
        Description copied from interface: BatchJobBuilder
        Creates a job for the specified entity;
        Specified by:
        buildJob in interface BatchJobBuilder<org.duracloud.snapshot.db.model.Snapshot>
        Returns:
        a job object.
        Throws:
        org.duracloud.snapshot.SnapshotException
      • buildIdentifyingJobParameters

        public org.springframework.batch.core.JobParameters buildIdentifyingJobParameters​(org.duracloud.snapshot.db.model.Snapshot snapshot)
        Specified by:
        buildIdentifyingJobParameters in interface BatchJobBuilder<org.duracloud.snapshot.db.model.Snapshot>
      • buildJobParameters

        public org.springframework.batch.core.JobParameters buildJobParameters​(org.duracloud.snapshot.db.model.Snapshot snapshot)
        Specified by:
        buildJobParameters in interface BatchJobBuilder<org.duracloud.snapshot.db.model.Snapshot>