类 ModelMBeanNotificationPublisher
- java.lang.Object
- org.springframework.jmx.export.notification.ModelMBeanNotificationPublisher
- 所有已实现的接口:
NotificationPublisher
public class ModelMBeanNotificationPublisher extends Object implements NotificationPublisher
NotificationPublisherimplementation that uses the infrastructure provided by theModelMBeaninterface to trackjavax.management.NotificationListenersand sendNotificationsto those listeners.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller, Rick Evans
- 另请参阅:
ModelMBeanNotificationBroadcaster,NotificationPublisherAware
构造器概要
构造器 构造器 说明 ModelMBeanNotificationPublisher(ModelMBeanNotificationBroadcaster modelMBean, ObjectName objectName, Object managedResource)Create a new instance of theModelMBeanNotificationPublisherclass that will publish allNotificationsto the suppliedModelMBean.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidsendNotification(Notification notification)Send the suppliedNotificationusing the wrappedModelMBeaninstance.
构造器详细资料
ModelMBeanNotificationPublisher
public ModelMBeanNotificationPublisher(ModelMBeanNotificationBroadcaster modelMBean, ObjectName objectName, Object managedResource)
Create a new instance of theModelMBeanNotificationPublisherclass that will publish allNotificationsto the suppliedModelMBean.- 参数:
modelMBean- the targetModelMBean; must not benullobjectName- theObjectNameof the sourceModelMBeanmanagedResource- the managed resource exposed by the suppliedModelMBean- 抛出:
IllegalArgumentException- if any of the parameters isnull
方法详细资料
sendNotification
public void sendNotification(Notification notification)
Send the suppliedNotificationusing the wrappedModelMBeaninstance.- 指定者:
sendNotification在接口中NotificationPublisher- 参数:
notification- theNotificationto be sent- 抛出:
IllegalArgumentException- if the suppliednotificationisnullUnableToSendNotificationException- if the suppliednotificationcould not be sent