类 ModelMBeanNotificationPublisher
java.lang.Object
cn.taketoday.jmx.export.notification.ModelMBeanNotificationPublisher
- 所有已实现的接口:
NotificationPublisher
NotificationPublisher implementation that uses the infrastructure
provided by the ModelMBean interface to track
javax.management.NotificationListeners
and send Notifications to those listeners.- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop, Juergen Hoeller, Rick Evans
- 另请参阅:
-
构造器概要
构造器构造器说明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
Send the suppliedNotificationusing the wrappedModelMBeaninstance.- 指定者:
sendNotification在接口中NotificationPublisher- 参数:
notification- theNotificationto be sent- 抛出:
IllegalArgumentException- if the suppliednotificationisnullUnableToSendNotificationException- if the suppliednotificationcould not be sent
-