APIdia Launch Partner
Top Description Methods
sun.management

public Interface HotspotThreadMBean

Known Direct Implementers
sun.management.HotspotThread
Imports
sun.management.counter.Counter

Hotspot internal management interface for the thread system.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the current number of VM internal threads.
getInternalThreadCount
()

Returns the current number of VM internal threads.

public Map<String, Long>

Returns:

a Map object of the name of all VM internal threads to the thread CPU time in nanoseconds.
getInternalThreadCpuTimes
()

Returns a Map of the name of all VM internal threads to the thread CPU time in nanoseconds.

public List<Counter>

Returns:

a list of internal counters maintained in the VM for the thread system.
getInternalThreadingCounters
()

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

Method Detail

getInternalThreadCountback to summary
public int getInternalThreadCount()

Returns the current number of VM internal threads.

Returns:int

the current number of VM internal threads.

getInternalThreadCpuTimesback to summary
public Map<String, Long> 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:Map<String, Long>

a Map object of the name of all VM internal threads to the thread CPU time in nanoseconds.

Exceptions
UnsupportedOperationException:
if the Java virtual machine does not support CPU time measurement.
See Also
java.lang.management.ThreadMXBean#isThreadCpuTimeSupported
getInternalThreadingCountersback to summary
public List<Counter> getInternalThreadingCounters()

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

Returns:List<Counter>

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