类 ModelMBeanNotificationPublisher
- java.lang.Object
- org.springframework.jmx.export.notification.ModelMBeanNotificationPublisher
- 所有已实现的接口:
NotificationPublisher
public class ModelMBeanNotificationPublisher extends Object implements NotificationPublisher
NotificationPublisher
implementation that uses the infrastructure provided by theModelMBean
interface to trackjavax.management.NotificationListeners
and sendNotifications
to those listeners.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller, Rick Evans
- 另请参阅:
ModelMBeanNotificationBroadcaster
,NotificationPublisherAware
构造器概要
构造器 构造器 说明 ModelMBeanNotificationPublisher(ModelMBeanNotificationBroadcaster modelMBean, ObjectName objectName, Object managedResource)
Create a new instance of theModelMBeanNotificationPublisher
class that will publish allNotifications
to the suppliedModelMBean
.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
sendNotification(Notification notification)
Send the suppliedNotification
using the wrappedModelMBean
instance.
构造器详细资料
ModelMBeanNotificationPublisher
public ModelMBeanNotificationPublisher(ModelMBeanNotificationBroadcaster modelMBean, ObjectName objectName, Object managedResource)
Create a new instance of theModelMBeanNotificationPublisher
class that will publish allNotifications
to the suppliedModelMBean
.- 参数:
modelMBean
- the targetModelMBean
; must not benull
objectName
- theObjectName
of the sourceModelMBean
managedResource
- the managed resource exposed by the suppliedModelMBean
- 抛出:
IllegalArgumentException
- if any of the parameters isnull
方法详细资料
sendNotification
public void sendNotification(Notification notification)
Send the suppliedNotification
using the wrappedModelMBean
instance.- 指定者:
sendNotification
在接口中NotificationPublisher
- 参数:
notification
- theNotification
to be sent- 抛出:
IllegalArgumentException
- if the suppliednotification
isnull
UnableToSendNotificationException
- if the suppliednotification
could not be sent