Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. The Monitoring Services

Chapter 9. The Monitoring Services

In Chapter 8, we looked at the JMX notification model and how to write and use notification broadcasters and listeners. In this chapter, we will look at a few off-the-shelf implementations of notification broadcasters provided by JMX, called the monitoring services, or monitors. A monitor observes the attribute value of an MBean, called the observed object, at specific intervals, called the granularity period. From this observation, the monitor calculates a value called the derived gauge, which is either the value of the attribute or the difference between the values of the attribute at the two most recent observations (for numerical attributes only, of course). When the derived gauge satisfies a certain condition—which varies depending on the type of monitor in use—a notification of a type that is specific to that monitor is sent to all registered notification listeners. The monitoring service can also send error notifications if a problem occurs.

The JMX specification's monitoring services provide three types of monitors:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint