Examples of YarnEventPublisher


Examples of org.springframework.yarn.event.YarnEventPublisher

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()));
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.