Examples of JobParameters


Examples of org.springframework.batch.core.JobParameters

  //

  private long importData(final long amountOfData) {
    try {
      long jobInstanceCount = jobExplorer.getJobInstanceCount(importDataJob.getName());
      final JobParameters jobParameters = new JobParametersBuilder().addLong(RUN_ID, ++jobInstanceCount).addLong(NUMBER_OF_DATA, amountOfData)
          .toJobParameters();
      final JobExecution run = jobLauncher.run(importDataJob, jobParameters);
      assertExitStatus(run.getExitStatus());
      return runtime(run);
    } catch (final Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.