/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang.management; public interface ThreadMXBean { int getThreadCount(); int getPeakThreadCount(); long getTotalStartedThreadCount(); int getDaemonThreadCount(); long[] getAllThreadIds(); ThreadInfo getThreadInfo(long id); ThreadInfo[] getThreadInfo(long[] ids); ThreadInfo getThreadInfo(long id, int maxDepth); ThreadInfo[] getThreadInfo(long[] ids, int maxDepth); boolean isThreadContentionMonitoringSupported(); boolean isThreadContentionMonitoringEnabled(); void setThreadContentionMonitoringEnabled(boolean enable); long getCurrentThreadCpuTime(); long getCurrentThreadUserTime(); long getThreadCpuTime(long id); long getThreadUserTime(long id); boolean isThreadCpuTimeSupported(); boolean isCurrentThreadCpuTimeSupported(); boolean isThreadCpuTimeEnabled(); void setThreadCpuTimeEnabled(boolean enable); long[] findMonitorDeadlockedThreads(); void resetPeakThreadCount(); }