Example usage for org.springframework.batch.integration.partition MessageChannelPartitionHandler setStepName

List of usage examples for org.springframework.batch.integration.partition MessageChannelPartitionHandler setStepName

Introduction

In this page you can find the example usage for org.springframework.batch.integration.partition MessageChannelPartitionHandler setStepName.

Prototype

public void setStepName(String stepName) 

Source Link

Document

The name of the Step that will be used to execute the partitioned StepExecution .

Usage

From source file:uk.ac.kcl.batch.RemoteConfiguration.java

@Bean
@Qualifier("partitionHandler")
public MessageChannelPartitionHandler partitionHandler(@Qualifier("requestChannel") MessageChannel reqChannel,
        @Qualifier("aggregatedReplyChannel") PollableChannel repChannel) {
    MessageChannelPartitionHandler handler = new MessageChannelPartitionHandler();
    handler.setGridSize(gridSize);/*from  w w  w  .j a  va  2 s  .co m*/
    handler.setStepName("compositeSlaveStep");
    handler.setReplyChannel(repChannel);
    MessagingTemplate template = new MessagingTemplate();
    template.setDefaultChannel(reqChannel);
    template.setReceiveTimeout(partitionHandlerTimeout);
    handler.setMessagingOperations(template);
    return handler;
}

From source file:com.apress.prospringintegration.springbatch.partition.PartitionConfiguration.java

@Bean
public MessageChannelPartitionHandler partitionHandler() {
    MessageChannelPartitionHandler partitionHandler = new MessageChannelPartitionHandler();
    partitionHandler.setMessagingOperations(messagingTemplate());
    partitionHandler.setReplyChannel(pollableChannel);
    partitionHandler.setStepName("step1");
    partitionHandler.setGridSize(10);/*w w w .  j  av  a  2s .com*/
    return partitionHandler;
}

From source file:io.spring.batch.configuration.JobConfiguration.java

@Bean
public PartitionHandler partitionHandler() throws Exception {
    MessageChannelPartitionHandler partitionHandler = new MessageChannelPartitionHandler();

    partitionHandler.setStepName("slaveStep");
    partitionHandler.setGridSize(GRID_SIZE);
    partitionHandler.setMessagingOperations(messageTemplate());
    partitionHandler.setPollInterval(5000l);
    partitionHandler.setJobExplorer(this.jobExplorer);

    partitionHandler.afterPropertiesSet();

    return partitionHandler;
}