< prev index next >

src/java.management/share/classes/sun/management/HotspotThreadMBean.java

Print this page




  23  * questions.
  24  */
  25 
  26 package sun.management;
  27 
  28 import sun.management.counter.Counter;
  29 
  30 /**
  31  * Hotspot internal management interface for the thread system.
  32  */
  33 public interface HotspotThreadMBean {
  34 
  35     /**
  36      * Returns the current number of VM internal threads.
  37      *
  38      * @return the current number of VM internal threads.
  39      */
  40     public int getInternalThreadCount();
  41 
  42     /**
  43      * Returns a <tt>Map</tt> of the name of all VM internal threads
  44      * to the thread CPU time in nanoseconds.  The returned value is
  45      * of nanoseconds precision but not necessarily nanoseconds accuracy.
  46      * <p>
  47      *
  48      * @return a <tt>Map</tt> object of the name of all VM internal threads
  49      * to the thread CPU time in nanoseconds.
  50      *
  51      * @throws java.lang.UnsupportedOperationException if the Java virtual
  52      * machine does not support CPU time measurement.
  53      *
  54      * @see java.lang.management.ThreadMBean#isThreadCpuTimeSupported
  55      */
  56     public java.util.Map<String,Long> getInternalThreadCpuTimes();
  57 
  58     /**
  59      * Returns a list of internal counters maintained in the Java
  60      * virtual machine for the thread system.
  61      *
  62      * @return a list of internal counters maintained in the VM
  63      * for the thread system.
  64      */
  65     public java.util.List<Counter> getInternalThreadingCounters();
  66 }


  23  * questions.
  24  */
  25 
  26 package sun.management;
  27 
  28 import sun.management.counter.Counter;
  29 
  30 /**
  31  * Hotspot internal management interface for the thread system.
  32  */
  33 public interface HotspotThreadMBean {
  34 
  35     /**
  36      * Returns the current number of VM internal threads.
  37      *
  38      * @return the current number of VM internal threads.
  39      */
  40     public int getInternalThreadCount();
  41 
  42     /**
  43      * Returns a {@code Map} of the name of all VM internal threads
  44      * to the thread CPU time in nanoseconds.  The returned value is
  45      * of nanoseconds precision but not necessarily nanoseconds accuracy.

  46      *
  47      * @return a {@code Map} object of the name of all VM internal threads
  48      * to the thread CPU time in nanoseconds.
  49      *
  50      * @throws java.lang.UnsupportedOperationException if the Java virtual
  51      * machine does not support CPU time measurement.
  52      *
  53      * @see java.lang.management.ThreadMBean#isThreadCpuTimeSupported
  54      */
  55     public java.util.Map<String,Long> getInternalThreadCpuTimes();
  56 
  57     /**
  58      * Returns a list of internal counters maintained in the Java
  59      * virtual machine for the thread system.
  60      *
  61      * @return a list of internal counters maintained in the VM
  62      * for the thread system.
  63      */
  64     public java.util.List<Counter> getInternalThreadingCounters();
  65 }
< prev index next >