Java 类org.springframework.batch.core.JobExecutionListener 实例源码
项目:spring-cloud-task
文件:TaskBatchEventListenerBeanPostProcessor.java
private void registerJobExecutionEventListener(Object bean) {
if (bean instanceof AbstractJob &&
this.applicationContext.containsBean(BatchEventAutoConfiguration.JOB_EXECUTION_EVENTS_LISTENER)) {
JobExecutionListener jobExecutionEventsListener =
(JobExecutionListener) this.applicationContext.getBean(
BatchEventAutoConfiguration.JOB_EXECUTION_EVENTS_LISTENER);
AbstractJob job = (AbstractJob) bean;
job.registerJobExecutionListener(
jobExecutionEventsListener);
}
}
项目:TaskMadness
文件:MooreStatConfiguration.java
@Bean
public Job importUserJob(JobBuilderFactory jobs, Step s1, JobExecutionListener executionListener) {
return jobs.get("importUserJob")
.incrementer(new RunIdIncrementer())
.listener(executionListener)
.flow(s1)
.end()
.build();
}
项目:TaskMadness
文件:NcaaStatConfiguration.java
@Bean
public Job importUserJob(JobBuilderFactory jobs, Step s1, JobExecutionListener executionListener) {
return jobs.get("importUserJob")
.incrementer(new RunIdIncrementer())
.listener(executionListener)
.flow(s1)
.end()
.build();
}
项目:json-file-itemwriter
文件:BatchConfiguration.java
@Bean
public Job writeStepJob(JobBuilderFactory jobs, Step stepOne, JobExecutionListener listener) {
return jobs.get("writeStepJob")
.incrementer(new RunIdIncrementer())
.listener(listener)
.flow(stepOne)
.end()
.build();
}
项目:json-file-itemwriter
文件:BatchConfiguration.java
@Bean
public Job writeJsonFormatJob(JobBuilderFactory jobs, Step stepOne, JobExecutionListener listener) {
return jobs.get("JsonWriter")
.incrementer(new RunIdIncrementer())
.listener(listener)
.flow(stepOne)
.end()
.build();
}
项目:json-file-itemwriter
文件:BatchConfiguration.java
@Bean
public Job writeStepJob(JobBuilderFactory jobs, Step stepOne, JobExecutionListener listener) {
return jobs.get("writeStepJob")
.incrementer(new RunIdIncrementer())
.listener(listener)
.flow(stepOne)
.end()
.build();
}
项目:Spring-5.0-Cookbook
文件:BatchConfig.java
@Bean
public Job importUserJob(JobBuilderFactory jobs, Step step1, Step step2, JobExecutionListener listener) {
return jobs.get("importUserJob")
.incrementer(new RunIdIncrementer())
.listener(listener)
.flow(step1)
.next(step2)
.end()
.build();
}
项目:SpringRestBatch
文件:JobConfiguration.java
@Bean
public JobExecutionListener listener() {
return new JobCompletionNotificationListener();
}
项目:springboot-batch-doma
文件:BatchConfiguration.java
@Bean
public Job importUserJob(JobBuilderFactory jobs, Step s1, JobExecutionListener listener) {
return jobs.get("importUserJob").incrementer(new RunIdIncrementer()).listener(listener).flow(s1).end().build();
}
项目:springBatchJmsKata
文件:SimpleStringProcessingJob.java
@Bean
public Job job(JobExecutionListener listener, Step stepProcess) {
return jobs.get("simpleStringProcessorTask").incrementer(new RunIdIncrementer()).flow(stepProcess).end().listener(simpleJobLogger).build();
}
项目:springBatchBootJavaConfigkata
文件:TaskletConfig.java
@Bean
public Job job(JobExecutionListener listener,Step stepTasklet) {
return jobs.get("HelloJob").listener(listener).start(stepTasklet()).build();
}
项目:eMonocot
文件:CompositeJobStatusListener.java
public void setJobListeners(List<JobExecutionListener> jobListeners) {
this.jobListeners = jobListeners;
}
项目:eMonocot
文件:CompositeJobStatusListener.java
@Override
public void beforeJob(JobExecution jobExecution) {
for(JobExecutionListener jobListener : jobListeners) {
jobListener.beforeJob(jobExecution);
}
}
项目:eMonocot
文件:CompositeJobStatusListener.java
@Override
public void afterJob(JobExecution jobExecution) {
for(JobExecutionListener jobListener : jobListeners) {
jobListener.afterJob(jobExecution);
}
}
项目:powop
文件:CompositeJobStatusListener.java
public void setJobListeners(List<JobExecutionListener> jobListeners) {
this.jobListeners = jobListeners;
}
项目:powop
文件:CompositeJobStatusListener.java
@Override
public void beforeJob(JobExecution jobExecution) {
for(JobExecutionListener jobListener : jobListeners) {
jobListener.beforeJob(jobExecution);
}
}
项目:powop
文件:CompositeJobStatusListener.java
@Override
public void afterJob(JobExecution jobExecution) {
for(JobExecutionListener jobListener : jobListeners) {
jobListener.afterJob(jobExecution);
}
}
项目:spring-cloud-task
文件:BatchEventAutoConfiguration.java
@Bean
@Lazy
@ConditionalOnProperty(prefix = "spring.cloud.task.batch.events.job-execution", name = "enabled", havingValue = "true", matchIfMissing = true)
public JobExecutionListener jobExecutionEventsListener() {
return new EventEmittingJobExecutionListener(listenerChannels.jobExecutionEvents(),taskEventProperties.getJobExecutionOrder());
}
项目:spring-boot-starter-batch-web
文件:MetricsConfiguration.java
@Override
public Set<JobExecutionListener> jobExecutionListeners() {
Set<JobExecutionListener> listeners = new HashSet<JobExecutionListener>();
listeners.add(metricsListener());
return listeners;
}
项目:spring-boot-starter-batch-web
文件:TestListenerConfiguration.java
@Override
public Set<JobExecutionListener> jobExecutionListeners() {
Set<JobExecutionListener> listeners = new HashSet<JobExecutionListener>();
listeners.add(testListener());
return listeners;
}
项目:spring-batch-experiments
文件:LaunchConfiguration.java
@Bean
public JobExecutionListener jobLoggerListener() {
return new JobLoggerListener();
}
项目:spring-batch-experiments
文件:LaunchConfiguration.java
@Bean
public JobExecutionListener jobLoggerListener() {
return new JobLoggerListener();
}
项目:spring-boot-starter-batch-web
文件:ListenerProvider.java
/**
* Returns a set of JobExecutionListeners that will be added to each Job.
* May not return null.
* @return Returns a set of JobExecutionListeners that will be added to each Job. May not return null.
*/
public Set<JobExecutionListener> jobExecutionListeners();