equal
deleted
inserted
replaced
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. |
172 The static factory methods in the <tt>ManagementFactory</tt> class will |
172 The static factory methods in the <code>ManagementFactory</code> class will |
173 return the MXBeans with the platform extension. |
173 return the MXBeans with the platform extension. |
174 |
174 |
175 <p> |
175 <p> |
176 It is recommended to name the platform-specific attributes with |
176 It is recommended to name the platform-specific attributes with |
177 a vendor-specific prefix such as the vendor's name to |
177 a vendor-specific prefix such as the vendor's name to |
203 } |
203 } |
204 </pre> |
204 </pre> |
205 </blockquote> |
205 </blockquote> |
206 |
206 |
207 <p> |
207 <p> |
208 2) Access the Oracle-specific MXBean interface via <tt>MBeanServer</tt> |
208 2) Access the Oracle-specific MXBean interface via <code>MBeanServer</code> |
209 through proxy |
209 through proxy |
210 |
210 |
211 <blockquote><pre> |
211 <blockquote><pre> |
212 MBeanServerConnection mbs; |
212 MBeanServerConnection mbs; |
213 |
213 |
226 GcInfo gcinfo = gc.getLastGcInfo(); |
226 GcInfo gcinfo = gc.getLastGcInfo(); |
227 ... |
227 ... |
228 } |
228 } |
229 </pre></blockquote> |
229 </pre></blockquote> |
230 |
230 |
231 <p> Unless otherwise noted, passing a <tt>null</tt> argument to a constructor |
231 <p> Unless otherwise noted, passing a <code>null</code> argument to a constructor |
232 or method in any class or interface in this package will cause a {@link |
232 or method in any class or interface in this package will cause a {@link |
233 java.lang.NullPointerException NullPointerException} to be thrown. |
233 java.lang.NullPointerException NullPointerException} to be thrown. |
234 |
234 |
235 <p> The java.lang.management API is thread-safe. |
235 <p> The java.lang.management API is thread-safe. |
236 |
236 |