Package org.jberet.job

Examples of org.jberet.job.Job


    private ArtifactFactory artifactFactory = new SimpleArtifactFactory();

    @Override
    public long start(String jobXMLName, Properties jobParameters) throws JobStartException, JobSecurityException {
        ClassLoader classLoader = BatchUtil.getBatchApplicationClassLoader();
        Job jobDefined = ArchiveXmlLoader.loadJobXml(jobXMLName, Job.class, classLoader);
        repository.addJob(jobDefined);
        JobInstanceImpl jobInstance = repository.createJobInstance(jobDefined, getApplicationName(), classLoader);
        return startJobExecution(jobInstance, jobParameters, null);
    }
View Full Code Here


    }

    @Override
    public boolean removeJob(String jobId) {
        synchronized (jobs) {
            Job toRemove = getJob(jobId);
            return toRemove != null && jobs.remove(toRemove);
        }
    }
View Full Code Here

TOP

Related Classes of org.jberet.job.Job

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.