Class Footprint.OperatingSystemBeanWrapper

  • Enclosing class:
    Footprint

    public static class Footprint.OperatingSystemBeanWrapper
    extends java.lang.Object
    Wrapper so that possible NoClassDefFoundError can be caught. Instantiating this class will throw a NoClassDefFoundError on JDK 1.4 and earlier, or will throw a ClassCastException on a 1.5-compliant non-sun JRE where the osBean is not a sunBean. (If compiled by Eclipse, instantiating it will throw an unsubclassed java.lang.Error.)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.management.OperatingSystemMXBean osBean  
      (package private) com.sun.management.OperatingSystemMXBean sunBean  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getProcessCpuTime()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • osBean

        java.lang.management.OperatingSystemMXBean osBean
      • sunBean

        com.sun.management.OperatingSystemMXBean sunBean
    • Constructor Detail

      • OperatingSystemBeanWrapper

        public OperatingSystemBeanWrapper()
    • Method Detail

      • getProcessCpuTime

        public long getProcessCpuTime()