Example usage for org.springframework.batch.core JobExecutionListener interface-usage

List of usage examples for org.springframework.batch.core JobExecutionListener interface-usage

Introduction

In this page you can find the example usage for org.springframework.batch.core JobExecutionListener interface-usage.

Usage

From source file de.codecentric.batch.listener.LoggingListener.java

/**
 * This listener writes the job log file name to the MDC so that it can be picked up by the logging
 * framework for logging to it. It's a {@link JobExecutionListener} and a {@link StepExecutionListener}
 * because in partitioning we may have a lot of {@link StepExecution}s running in different threads.
 * Due to the fact that the afterStep - method would remove the variable from the MDC in single threaded
 * execution we need to re-set it, that's what's the {@link LoggingAfterJobListener} is for.

From source file de.codecentric.batch.listener.ProtocolListener.java

/**
 * This listener adds a protocol header and a protocol summary to the log.
 * 
 * @author Tobias Flohre
 * @author Dennis Schulte
 * 

From source file uk.ac.kcl.listeners.JobCompleteNotificationListener.java

@Component
//@Scope("prototype")
public class JobCompleteNotificationListener implements JobExecutionListener {

    private static final Logger log = LoggerFactory.getLogger(JobCompleteNotificationListener.class);
    private long timeOfNextJob;

From source file org.duracloud.snapshot.service.impl.SnapshotJobExecutionListener.java

/**
 * @author Erik Paulsson
 *         Date: 2/10/14
 */
@Component("jobListener")
public class SnapshotJobExecutionListener implements JobExecutionListener {

From source file de.langmi.spring.batch.examples.complex.skip.simple.SkipJobListener.java

/**
 * SkipJobListener.
 *
 * @author Michael R. Lange <michael.r.lange@langmi.de>
 */
public class SkipJobListener implements JobExecutionListener, SkipListener<String, String>, StepExecutionListener,

From source file com.github.jrrdev.mantisbtsync.core.common.listener.CloseAuthManagerListener.java

/**
 * Job listener executing AuthManager closing at the end of the job.
 *
 * @author jrrdev
 *
 */

From source file org.duracloud.snapshot.service.impl.RestoreJobExecutionListener.java

/**
 * @author Erik Paulsson
 *         Date: 2/10/14
 */
@Component("restoreJobListener")
public class RestoreJobExecutionListener implements JobExecutionListener {

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.jasig.ssp.util.importer.job.report.ReportGenerator.java

public class ReportGenerator implements JobExecutionListener {

    private transient JavaMailSender javaMailSender;

    private String batchTitle;

From source file org.jasig.ssp.util.importer.job.tasklet.BatchFinalizer.java

public class BatchFinalizer implements JobExecutionListener {

    private Resource archiveDirectory;
    private Resource inputDirectory;
    private Resource processDirectory;
    private Resource upsertDirectory;