List of usage examples for org.springframework.batch.core JobExecutionListener interface-usage
From source file be.ordina.springbatch.batch.listener.TrajectInformationJobExecutionListener.java
public class TrajectInformationJobExecutionListener implements JobExecutionListener { @Override public void afterJob(JobExecution jobExecution) { if (jobExecution.getExitStatus().equals(ExitStatus.COMPLETED)) { int reads = jobExecution.getStepExecutions().stream().mapToInt(se -> se.getReadCount()).sum();
From source file com.github.ffremont.MyJobExecutionListener.java
/** * * @author florent */ @Component("myJobExecutionListener") public class MyJobExecutionListener implements JobExecutionListener {
From source file org.seedstack.spring.batch.sample.listeners.AppJobExecutionListener.java
@Component("jobExecutionListener") public class AppJobExecutionListener implements JobExecutionListener { private static final Logger logger = LoggerFactory.getLogger(AppJobExecutionListener.class); public void afterJob(JobExecution jobExecution) {
From source file com.example.listener.CustomJobExecutionListener.java
/** * * @author afes */ public class CustomJobExecutionListener implements JobExecutionListener {
From source file de.codecentric.batch.listener.TestListener.java
/** * TestListener added via ListenerProvider. * * @author Tobias Flohre */ public class TestListener implements JobExecutionListener {
From source file de.codecentric.batch.listener.RunningExecutionTrackerListener.java
/**
* This listener is needed for tracking the running JobExecutions on this server.
*
* <p>It's easy to find out which jobs are running in general by looking into the database, but it has
* some drawbacks:
* <ul>
From source file org.springframework.xd.dirt.plugins.job.support.listener.SimpleXdJobExecutionListener.java
/** * @author Gunnar Hillert * @author Ilayaperumal Gopinathan * @since 1.0 */ public class SimpleXdJobExecutionListener extends BatchJobListener<JobExecution> implements JobExecutionListener {
From source file de.codecentric.batch.listener.LoggingAfterJobListener.java
/**
* This extra listener is needed, because the {@link LoggingListener} removes the variable from the MDC
* in its afterStep method. We re-set it here at the beginning of the execution of all afterJob methods
* of JobExecutionListeners.
* @see LoggingListener
*
From source file org.springframework.data.hadoop.admin.examples.EmailNotification.java
/** * @author Jarred Li * */ public class EmailNotification implements JobExecutionListener, InitializingBean {
From source file io.getlime.push.service.batch.SendCampaignJobListener.java
@Component @JobScope public class SendCampaignJobListener implements JobExecutionListener { private PushCampaignRepository pushCampaignRepository; @Value("#{jobParameters['campaignId']}")