6610094: Add generic support for platform MXBeans of any type
Mandy Chung
Mandy.Chung at Sun.COM
Thu Apr 3 00:20:44 PDT 2008
Please review the fix for:
6610094: Add generic support for platform MXBeans of any type
Problem:
The java.lang.management API defines the management interfaces for the Java
virtual machine. The management interface for other components in the
platform
will reside in its own package. For example, the management interface
for the
logging facility is java.util.logging.LoggingMXBean.
There is no easy way to find out what management interfaces are defined in
the Java platform. In addition, when a new management interface is added in
the platform, it needs to provide a factory method to obtain the platform
MXBeans (e.g. java.util.logging.LogManager.getLoggerMXBean()). We
expect that
NIO and the new module system will define their management interfaces in
JDK7.
Solution:
Add a new java.lang.management.PlatformManagedObject interface which
provides
a method to return the object name. All existing MXBean interfaces will be
modified to extend this interface.
(Note: In the interface summary, the methods count for the *MXBean
interfaces
reflects the number of methods added resulting from extending the
PlatformManagedObject interface)
Add new methods the in java.lang.management.ManagementFactory class:
1) A method to return the list of platform MXBeans that implement a given
management interface in the running JVM
2) A method to return the list of platform MXBean proxies that implement
a given
management interface and in the given remote MBeanServerConnection
3) A method to return all MXBean interfaces for monitoring and managing the
Java platform
Webrev:
Attached webrev.zip. This webrev also contains some code clean up
including to throw AssertionError instead of InternalError.
Thanks
Mandy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webrev.zip.gz
Type: application/x-tar
Size: 1374483 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20080403/aa39b4b0/attachment.tar
More information about the serviceability-dev
mailing list