Example usage for org.springframework.batch.core.listener StepExecutionListenerSupport subclass-usage

List of usage examples for org.springframework.batch.core.listener StepExecutionListenerSupport subclass-usage

Introduction

In this page you can find the example usage for org.springframework.batch.core.listener StepExecutionListenerSupport subclass-usage.

Usage

From source file fr.acxio.tools.agia.common.NoReadStepExecutionListener.java

/**
 * <p>
 * Sets the exit code {@code NOREAD} to the step if no items have been
 * processed (item count is 0).
 * </p>
 * <p>

From source file kr.okplace.job.support.SummaryFooterCallback.java

/**
 * Writes summary info in the footer of a file.
 */
public class SummaryFooterCallback extends StepExecutionListenerSupport implements FlatFileFooterCallback {

    private StepExecution stepExecution;

From source file org.springframework.batch.sample.common.InfiniteLoopWriter.java

/**
 * Simple module implementation that will always return true to indicate that
 * processing should continue. This is useful for testing graceful shutdown of
 * jobs.
 * 
 * @author Lucas Ward

From source file org.openmrs.module.bahmniexports.example.domain.trade.CompositeCustomerUpdateLineTokenizer.java

/**
 * Composite {@link LineTokenizer} that delegates the tokenization of a line to one of two potential
 * tokenizers.  The file format in this case uses one character, either F, A, U, or D to indicate 
 * whether or not the line is an a footer record, or a customer add, update, or delete, and 
 * will delegate accordingly.
 * 

From source file kr.okplace.job.common.InfiniteLoopWriter.java

/**
 * Simple module implementation that will always return true to indicate that
 * processing should continue. This is useful for testing graceful shutdown of
 * jobs.
 * 
 * @author Lucas Ward

From source file io.spring.batch.DownloadingStepExecutionListener.java

/**
 * @author Michael Minella
 */
public class DownloadingStepExecutionListener extends StepExecutionListenerSupport {

    @Autowired

From source file org.springframework.cloud.task.app.composedtaskrunner.ComposedTaskStepExecutionListener.java

/**
 * Listener for the TaskLauncherTasklet that waits for the task to complete
 * and sets the appropriate result for this step based on the launched task
 * exit code.
 *
 * @author Glenn Renfro

From source file de.codecentric.batch.metrics.MetricsListener.java

import org.springframework.boot.actuate.metrics.rich.RichGaugeRepository;
import org.springframework.core.Ordered;

/**
 * This listener exports all metrics with the prefix 'counter.batch.{jobName}.{jobExecutionId}.{stepName}
 * and all gauges with the prefix 'gauge.batch.{jobName}.{stepName}' to the Step-

From source file org.springframework.batch.core.step.tasklet.SystemCommandTasklet.java

/**
 * {@link Tasklet} that executes a system command.
 *
 * The system command is executed asynchronously using injected
 * {@link #setTaskExecutor(TaskExecutor)} - timeout value is required to be set,
 * so that the batch job does not hang forever if the external process hangs.

From source file org.springframework.batch.integration.chunk.ChunkMessageChannelItemWriter.java

public class ChunkMessageChannelItemWriter<T> extends StepExecutionListenerSupport
        implements ItemWriter<T>, ItemStream, StepContributionSource {

    private static final Log logger = LogFactory.getLog(ChunkMessageChannelItemWriter.class);

    static final String ACTUAL = ChunkMessageChannelItemWriter.class.getName() + ".ACTUAL";