Package org.springframework.xd.shell.command.JobCommandTests

Examples of org.springframework.xd.shell.command.JobCommandTests.JobParametersHolder


  public RepeatStatus execute(StepContribution contribution,
      ChunkContext chunkContext) throws Exception {

    System.out.println("Hello Spring XD With Job Parameters!");

    final JobParametersHolder jobParametersHolder = new JobParametersHolder();

    final JobParameters jobParameters = chunkContext.getStepContext().getStepExecution().getJobParameters();
    final Set<Entry<String, JobParameter>> parameterEntries = jobParameters.getParameters().entrySet();

    for (Entry<String, JobParameter> jobParameterEntry : parameterEntries) {
      jobParametersHolder.addParameter(jobParameterEntry.getKey(), jobParameterEntry.getValue());
    }

    jobParametersHolder.countDown();

    return RepeatStatus.FINISHED;
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.shell.command.JobCommandTests.JobParametersHolder

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.