public class BootApplicationEventTransformer extends LifecycleObjectSupport implements ApplicationListener<ApplicationEvent> {
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof JobExecutionEvent) {
YarnEventPublisher eventPublisher = getYarnEventPublisher();
if (eventPublisher != null) {
eventPublisher.publishEvent(new org.springframework.yarn.batch.event.JobExecutionEvent(this,
((JobExecutionEvent) event).getJobExecution()));
}
}
}