All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.snapshot.service.impl.BatchJobBuilder Maven / Gradle / Ivy

The newest version!
/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.snapshot.service.impl;

import org.duracloud.snapshot.SnapshotException;
import org.duracloud.snapshot.service.SnapshotJobManagerConfig;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobParameters;

/**
 * @author Daniel Bernstein
 * Date: Jul 25, 2014
 */
public interface BatchJobBuilder {
    /**
     * Creates a job for the specified entity;
     *
     * @param entity
     * @param config
     * @return a job object.
     */
    Job buildJob(T entity, SnapshotJobManagerConfig config) throws SnapshotException;

    JobParameters buildJobParameters(T entity);

    JobParameters buildIdentifyingJobParameters(T entity);

    String getJobName();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy