Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Monitor class in Java

Tags:

java

I want to know about Monitor class in Java.

What is it used for, where is it used?

like image 667
Suraj Air Avatar asked Aug 17 '10 05:08

Suraj Air


1 Answers

The Monitor class is an abstract class that is extended by some of the standard MBean classes defined in the javax.management.monitoring package. It provides infrastructure for configuring the objects monitored/observed by an MBean, and for making those observations.

You normally wouldn't use the Monitor class directly unless you were implementing your own MonitorMBean classes.

(Note this is "monitor" as in "observe what it going on inside a server" rather than "monitor" as in "concurrent programming primitive".)

like image 190
Stephen C Avatar answered Sep 29 '22 10:09

Stephen C