Tabnine Logo
PartitionStep.setStepExecutionAggregator
Code IndexAdd Tabnine to your IDE (free)

How to use
setStepExecutionAggregator
method
in
org.springframework.batch.core.partition.support.PartitionStep

Best Java code snippets using org.springframework.batch.core.partition.support.PartitionStep.setStepExecutionAggregator (Showing top 5 results out of 315)

origin: spring-projects/spring-batch

step.setStepExecutionAggregator(aggregator);
origin: spring-projects/spring-batch

@Test
public void testStepAggregator() throws Exception {
  step.setStepExecutionAggregator(new DefaultStepExecutionAggregator() {
    @Override
    public void aggregate(StepExecution result, Collection<StepExecution> executions) {
      super.aggregate(result, executions);
      result.getExecutionContext().put("aggregated", true);
    }
  });
  step.setStepExecutionSplitter(new SimpleStepExecutionSplitter(jobRepository, true, step.getName(), new SimplePartitioner()));
  step.setPartitionHandler(new PartitionHandler() {
    @Override
    public Collection<StepExecution> handle(StepExecutionSplitter stepSplitter, StepExecution stepExecution)
        throws Exception {
      return Arrays.asList(stepExecution);
    }
  });
  step.afterPropertiesSet();
  JobExecution jobExecution = jobRepository.createJobExecution("vanillaJob", new JobParameters());
  StepExecution stepExecution = jobExecution.createStepExecution("foo");
  jobRepository.add(stepExecution);
  step.execute(stepExecution);
  assertEquals(true, stepExecution.getExecutionContext().get("aggregated"));
}
origin: apache/servicemix-bundles

step.setStepExecutionAggregator(aggregator);
origin: org.springframework.batch/spring-batch-core

step.setStepExecutionAggregator(aggregator);
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

step.setStepExecutionAggregator(aggregator);
org.springframework.batch.core.partition.supportPartitionStepsetStepExecutionAggregator

Javadoc

A StepExecutionAggregator that can aggregate step executions when they come back from the handler. Defaults to a DefaultStepExecutionAggregator.

Popular methods of PartitionStep

  • setPartitionHandler
    A PartitionHandler which can send out step executions for remote processing and bring back the resul
  • setStepExecutionSplitter
    Public setter for mandatory property StepExecutionSplitter.
  • <init>
  • afterPropertiesSet
    Assert that mandatory properties are set (stepExecutionSplitter, partitionHandler) and delegate top
  • setName
  • execute
  • getName
  • setJobRepository

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • Menu (java.awt)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JCheckBox (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now