类 JobExecutionNotificationPublisher
- java.lang.Object
- org.springframework.batch.sample.jmx.JobExecutionNotificationPublisher
- 所有已实现的接口:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationListener<SimpleMessageApplicationEvent>,org.springframework.jmx.export.notification.NotificationPublisherAware
public class JobExecutionNotificationPublisher extends java.lang.Object implements org.springframework.context.ApplicationListener<SimpleMessageApplicationEvent>, org.springframework.jmx.export.notification.NotificationPublisherAware
JMX notification broadcaster- 从以下版本开始:
- 1.0
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 JobExecutionNotificationPublisher()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidonApplicationEvent(SimpleMessageApplicationEvent applicationEvent)If the event is aSimpleMessageApplicationEventfor open and close we log the event at INFO level and send a JMX notification if we are also an MBean.voidsetNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher notificationPublisher)Injection setter.
构造器详细资料
JobExecutionNotificationPublisher
public JobExecutionNotificationPublisher()
方法详细资料
setNotificationPublisher
public void setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher notificationPublisher)
Injection setter.- 指定者:
setNotificationPublisher在接口中org.springframework.jmx.export.notification.NotificationPublisherAware- 另请参阅:
NotificationPublisherAware.setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher)
onApplicationEvent
public void onApplicationEvent(SimpleMessageApplicationEvent applicationEvent)
If the event is aSimpleMessageApplicationEventfor open and close we log the event at INFO level and send a JMX notification if we are also an MBean.- 指定者:
onApplicationEvent在接口中org.springframework.context.ApplicationListener<SimpleMessageApplicationEvent>- 另请参阅:
ApplicationListener.onApplicationEvent(ApplicationEvent)