spring-framework / org.springframework.jmx.export.notification

Package org.springframework.jmx.export.notification

Types

ModelMBeanNotificationPublisher

open class ModelMBeanNotificationPublisher : NotificationPublisher

NotificationPublisher implementation that uses the infrastructure provided by the ModelMBean interface to track javax.management.NotificationListener and send Notification to those listeners.

NotificationPublisherAware

interface NotificationPublisherAware : Aware

Interface to be implemented by any Spring-managed resource that is to be registered with an javax.management.MBeanServer and wishes to send JMX javax.management.Notification.

Provides Spring-created managed resources with a NotificationPublisher as soon as they are registered with the javax.management.MBeanServer.

NOTE: This interface only applies to simple Spring-managed beans which happen to get exported through Spring's org.springframework.jmx.export.MBeanExporter. It does not apply to any non-exported beans; neither does it apply to standard MBeans exported by Spring. For standard JMX MBeans, consider implementing the javax.management.modelmbean.ModelMBeanNotificationBroadcaster interface (or implementing a full javax.management.modelmbean.ModelMBean).

Exceptions

UnableToSendNotificationException

open class UnableToSendNotificationException : JmxException

Thrown when a JMX javax.management.Notification is unable to be sent.

The root cause of just why a particular notification could not be sent will typically be available via the #getCause() property.