Chapter 7. JMX Notifications

The JMX specification provides a very rich, generic notification mechanism. In this chapter, we will look at the JMX notification model, which serves as the foundation for notifications. Then we will look at what a notification is and examples of different notification types. We will then take a detailed look at the different classes and interfaces that JMX provides to underpin the JMX notification model, including:

Notification

This class represents the contents of a single notification and is sent by the broadcaster to the listener (or receiver) of the notification.

NotificationFilter

This interface, when implemented, gives the notification listener a way to tell the JMX notification infrastructure that it is interested in only a subset of the potential notifications sent by the broadcaster. The JMX RI provides a class called NotificationFilterSupport that can be used as an off-the-shelf notification filter.

NotificationBroadcaster

This interface must be implemented by all notification broadcasters. In addition, the RI provides an implementation of this interface called NotificationBroadcasterSupport that can be used as an off-the-shelf notification broadcaster.

NotificationListener

This interface must be implemented by all receivers of JMX notifications.

The JMX Notification Model

A notification in the context of JMX is a unit of information sent by a broadcaster through the JMX infrastructure to a listener, which interprets and processes the ...

Get Java Management Extensions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.