30 Provides the management interfaces for monitoring and management of the |
30 Provides the management interfaces for monitoring and management of the |
31 Java virtual machine and other components in the Java runtime. |
31 Java virtual machine and other components in the Java runtime. |
32 It allows both local and remote |
32 It allows both local and remote |
33 monitoring and management of the running Java virtual machine. |
33 monitoring and management of the running Java virtual machine. |
34 |
34 |
35 <h4><a name="MXBean">Platform MXBean</a></h4> |
35 <h3><a id="MXBean">Platform MXBean</a></h3> |
36 <p> |
36 <p> |
37 A platform MXBean is a <i>managed bean</i> that |
37 A platform MXBean is a <i>managed bean</i> that |
38 conforms to the <a href="../../../javax/management/package-summary.html">JMX</a> |
38 conforms to the <a href="../../../javax/management/package-summary.html">JMX</a> |
39 Instrumentation Specification and only uses a set of basic data types. |
39 Instrumentation Specification and only uses a set of basic data types. |
40 Each platform MXBean is a {@link java.lang.management.PlatformManagedObject} |
40 Each platform MXBean is a {@link java.lang.management.PlatformManagedObject} |
41 with a unique |
41 with a unique |
42 {@linkplain java.lang.management.PlatformManagedObject#getObjectName name}. |
42 {@linkplain java.lang.management.PlatformManagedObject#getObjectName name}. |
43 <h4>ManagementFactory</h4> |
43 <h3>ManagementFactory</h3> |
44 |
44 |
45 <p>The {@link java.lang.management.ManagementFactory} class is the management |
45 <p>The {@link java.lang.management.ManagementFactory} class is the management |
46 factory class for the Java platform. This class provides a set of |
46 factory class for the Java platform. This class provides a set of |
47 static factory methods to obtain the MXBeans for the Java platform |
47 static factory methods to obtain the MXBeans for the Java platform |
48 to allow an application to access the MXBeans directly. |
48 to allow an application to access the MXBeans directly. |
56 Each platform MXBean is registered with a unique name defined in |
56 Each platform MXBean is registered with a unique name defined in |
57 the specification of the management interface. |
57 the specification of the management interface. |
58 This is a single MBeanServer that can be shared by different managed |
58 This is a single MBeanServer that can be shared by different managed |
59 components running within the same Java virtual machine. |
59 components running within the same Java virtual machine. |
60 |
60 |
61 <h4>Interoperability</h4> |
61 <h3>Interoperability</h3> |
62 |
62 |
63 <p>A management application and a platform MBeanServer of a running |
63 <p>A management application and a platform MBeanServer of a running |
64 virtual machine can interoperate |
64 virtual machine can interoperate |
65 without requiring classes used by the platform MXBean interfaces. |
65 without requiring classes used by the platform MXBean interfaces. |
66 The data types being transmitted between the JMX connector |
66 The data types being transmitted between the JMX connector |
70 A data type used by the MXBean interfaces are mapped to an |
70 A data type used by the MXBean interfaces are mapped to an |
71 open type when being accessed via MBeanServer interface. |
71 open type when being accessed via MBeanServer interface. |
72 See the <a href="../../../javax/management/MXBean.html#MXBean-spec"> |
72 See the <a href="../../../javax/management/MXBean.html#MXBean-spec"> |
73 MXBean</a> specification for details. |
73 MXBean</a> specification for details. |
74 |
74 |
75 <h4><a name="examples">Ways to Access MXBeans</a></h4> |
75 <h3><a id="examples">Ways to Access MXBeans</a></h3> |
76 |
76 |
77 <p>An application can monitor the instrumentation of the |
77 <p>An application can monitor the instrumentation of the |
78 Java virtual machine and the runtime in the following ways: |
78 Java virtual machine and the runtime in the following ways: |
79 <p> |
79 <p> |
80 <b>1. Direct access to an MXBean interface</b> |
80 <b>1. Direct access to an MXBean interface</b> |
161 </pre> |
161 </pre> |
162 </li> |
162 </li> |
163 </ul> |
163 </ul> |
164 |
164 |
165 |
165 |
166 <h4><a name="extension">Platform Extension</a></h4> |
166 <h3><a id="extension">Platform Extension</a></h3> |
167 |
167 |
168 <p>A Java virtual machine implementation may add its platform extension to |
168 <p>A Java virtual machine implementation may add its platform extension to |
169 the management interface by defining platform-dependent |
169 the management interface by defining platform-dependent |
170 interfaces that extend the standard management interfaces to include |
170 interfaces that extend the standard management interfaces to include |
171 platform-specific metrics and management operations. |
171 platform-specific metrics and management operations. |