Eamonn McManus wrote:
> Luis-Miguel Alventosa reminded me that though the implementation class is
> not public, the com.sun.management.OperatingSystemMXBean interface that it
> implements is. So you can just cast the result of
> ManagementFactory.getOperatingSystemMXBean() to that interface and access
> its getProcessCpuTime() method, or do the same thing via reflection.
>
Thanks for the pointer!
--
Jess Holle
===========================================================================
For information on the Java Management extensions (JMX), please visit
our home page at
http://java.sun.com/products/JavaManagement/The JMX-FORUM archives are accessible at
http://archives.java.sun.comTo unsubscribe, send email to
listserv@... and include in the body
of the message "signoff JMX-FORUM". For general help, send email to
listserv@... and include in the body of the message "help".