public class RunningExecutionTrackerListener extends Object implements org.springframework.batch.core.JobExecutionListener
It's easy to find out which jobs are running in general by looking into the database, but it has some drawbacks:
This listener uses the RunningExecutionTracker to keep this information in memory and
accessible for the http endpoints.
| Constructor and Description |
|---|
RunningExecutionTrackerListener(RunningExecutionTracker runningExecutionTracker) |
public RunningExecutionTrackerListener(RunningExecutionTracker runningExecutionTracker)
public void beforeJob(org.springframework.batch.core.JobExecution jobExecution)
beforeJob in interface org.springframework.batch.core.JobExecutionListenerpublic void afterJob(org.springframework.batch.core.JobExecution jobExecution)
afterJob in interface org.springframework.batch.core.JobExecutionListenerCopyright © 2016. All Rights Reserved.