org.jboss.managed.plugins.jmx
Class ThreadMXBeanMO

java.lang.Object
  extended by org.jboss.managed.plugins.jmx.ThreadMXBeanMO
All Implemented Interfaces:
ThreadMXBean

public class ThreadMXBeanMO
extends Object
implements ThreadMXBean

Stub class for the ThreadMXBean interface that is marked up with management annotations.

Version:
$Revision:$
Author:
Scott.Stark@jboss.org

Constructor Summary
ThreadMXBeanMO()
           
 
Method Summary
 ThreadInfo[] dumpAllThreads(boolean lockedMonitors, boolean lockedSynchronizers)
           
 long[] findDeadlockedThreads()
           
 long[] findMonitorDeadlockedThreads()
           
 long[] getAllThreadIds()
           
 long getCurrentThreadCpuTime()
           
 long getCurrentThreadUserTime()
           
 int getDaemonThreadCount()
           
 int getPeakThreadCount()
           
 int getThreadCount()
           
 long getThreadCpuTime(long id)
           
 ThreadInfo getThreadInfo(long id)
           
 ThreadInfo[] getThreadInfo(long[] ids)
           
 ThreadInfo[] getThreadInfo(long[] ids, boolean lockedMonitors, boolean lockedSynchronizers)
           
 ThreadInfo[] getThreadInfo(long[] ids, int maxDepth)
           
 ThreadInfo getThreadInfo(long id, int maxDepth)
           
 long getThreadUserTime(long id)
           
 long getTotalStartedThreadCount()
           
 boolean isCurrentThreadCpuTimeSupported()
           
 boolean isObjectMonitorUsageSupported()
           
 boolean isSynchronizerUsageSupported()
           
 boolean isThreadContentionMonitoringEnabled()
           
 boolean isThreadContentionMonitoringSupported()
           
 boolean isThreadCpuTimeEnabled()
           
 boolean isThreadCpuTimeSupported()
           
 void resetPeakThreadCount()
           
 void setThreadContentionMonitoringEnabled(boolean enable)
           
 void setThreadCpuTimeEnabled(boolean enable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadMXBeanMO

public ThreadMXBeanMO()
Method Detail

findMonitorDeadlockedThreads

public long[] findMonitorDeadlockedThreads()
Specified by:
findMonitorDeadlockedThreads in interface ThreadMXBean

getAllThreadIds

public long[] getAllThreadIds()
Specified by:
getAllThreadIds in interface ThreadMXBean

getCurrentThreadCpuTime

public long getCurrentThreadCpuTime()
Specified by:
getCurrentThreadCpuTime in interface ThreadMXBean

getCurrentThreadUserTime

public long getCurrentThreadUserTime()
Specified by:
getCurrentThreadUserTime in interface ThreadMXBean

getDaemonThreadCount

public int getDaemonThreadCount()
Specified by:
getDaemonThreadCount in interface ThreadMXBean

getPeakThreadCount

public int getPeakThreadCount()
Specified by:
getPeakThreadCount in interface ThreadMXBean

getThreadCount

public int getThreadCount()
Specified by:
getThreadCount in interface ThreadMXBean

getThreadCpuTime

public long getThreadCpuTime(long id)
Specified by:
getThreadCpuTime in interface ThreadMXBean

getThreadInfo

public ThreadInfo getThreadInfo(long id)
Specified by:
getThreadInfo in interface ThreadMXBean

getThreadInfo

public ThreadInfo[] getThreadInfo(long[] ids)
Specified by:
getThreadInfo in interface ThreadMXBean

getThreadInfo

public ThreadInfo getThreadInfo(long id,
                                int maxDepth)
Specified by:
getThreadInfo in interface ThreadMXBean

getThreadInfo

public ThreadInfo[] getThreadInfo(long[] ids,
                                  int maxDepth)
Specified by:
getThreadInfo in interface ThreadMXBean

getThreadUserTime

public long getThreadUserTime(long id)
Specified by:
getThreadUserTime in interface ThreadMXBean

getTotalStartedThreadCount

public long getTotalStartedThreadCount()
Specified by:
getTotalStartedThreadCount in interface ThreadMXBean

isCurrentThreadCpuTimeSupported

public boolean isCurrentThreadCpuTimeSupported()
Specified by:
isCurrentThreadCpuTimeSupported in interface ThreadMXBean

isThreadContentionMonitoringEnabled

public boolean isThreadContentionMonitoringEnabled()
Specified by:
isThreadContentionMonitoringEnabled in interface ThreadMXBean

isThreadContentionMonitoringSupported

public boolean isThreadContentionMonitoringSupported()
Specified by:
isThreadContentionMonitoringSupported in interface ThreadMXBean

isThreadCpuTimeEnabled

public boolean isThreadCpuTimeEnabled()
Specified by:
isThreadCpuTimeEnabled in interface ThreadMXBean

isThreadCpuTimeSupported

public boolean isThreadCpuTimeSupported()
Specified by:
isThreadCpuTimeSupported in interface ThreadMXBean

resetPeakThreadCount

public void resetPeakThreadCount()
Specified by:
resetPeakThreadCount in interface ThreadMXBean

setThreadContentionMonitoringEnabled

public void setThreadContentionMonitoringEnabled(boolean enable)
Specified by:
setThreadContentionMonitoringEnabled in interface ThreadMXBean

setThreadCpuTimeEnabled

public void setThreadCpuTimeEnabled(boolean enable)
Specified by:
setThreadCpuTimeEnabled in interface ThreadMXBean

findDeadlockedThreads

public long[] findDeadlockedThreads()
Specified by:
findDeadlockedThreads in interface ThreadMXBean

isObjectMonitorUsageSupported

public boolean isObjectMonitorUsageSupported()
Specified by:
isObjectMonitorUsageSupported in interface ThreadMXBean

isSynchronizerUsageSupported

public boolean isSynchronizerUsageSupported()
Specified by:
isSynchronizerUsageSupported in interface ThreadMXBean

getThreadInfo

public ThreadInfo[] getThreadInfo(long[] ids,
                                  boolean lockedMonitors,
                                  boolean lockedSynchronizers)
Specified by:
getThreadInfo in interface ThreadMXBean

dumpAllThreads

public ThreadInfo[] dumpAllThreads(boolean lockedMonitors,
                                   boolean lockedSynchronizers)
Specified by:
dumpAllThreads in interface ThreadMXBean


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.