public interface

HotspotThreadMBean

sun.management.HotspotThreadMBean

Class Overview

Hotspot internal management interface for the thread system.

Summary

Public Methods
abstract int getInternalThreadCount()
Returns the current number of VM internal threads.
abstract Map<StringLong> getInternalThreadCpuTimes()
Returns a Map of the name of all VM internal threads to the thread CPU time in nanoseconds.
abstract List<Counter> getInternalThreadingCounters()
Returns a list of internal counters maintained in the Java virtual machine for the thread system.

Public Methods

public abstract int getInternalThreadCount ()

Returns the current number of VM internal threads.

Returns
  • the current number of VM internal threads.

public abstract Map<StringLong> getInternalThreadCpuTimes ()

Returns a Map of the name of all VM internal threads to the thread CPU time in nanoseconds. The returned value is of nanoseconds precision but not necessarily nanoseconds accuracy.

Returns
  • a Map object of the name of all VM internal threads to the thread CPU time in nanoseconds.
Throws
UnsupportedOperationException if the Java virtual machine does not support CPU time measurement.
See Also
  • java.lang.management.ThreadMBean#isThreadCpuTimeSupported

public abstract List<Counter> getInternalThreadingCounters ()

Returns a list of internal counters maintained in the Java virtual machine for the thread system.

Returns
  • a list of internal counters maintained in the VM for the thread system.