JvmThreadingImpl.java revision 0
0N/A * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. Sun designates this 0N/A * particular file as subject to the "Classpath" exception as provided 0N/A * by Sun in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 0N/A * CA 95054 USA or visit www.sun.com if you need additional information or 0N/A * have any questions. 0N/A * The class is used for implementing the "JvmThreading" group. 0N/A * Variable for storing the value of "JvmThreadCpuTimeMonitoring". 0N/A * "The state of the Thread CPU Time Monitoring feature. 0N/A * This feature can be: 0N/A * unsupported: The JVM does not support Thread CPU Time Monitoring. 0N/A * enabled : The JVM supports Thread CPU Time Monitoring, and it 0N/A * disabled : The JVM supports Thread CPU Time Monitoring, and it 0N/A * Only enabled(3) and disabled(4) may be supplied as values to a 0N/A * SET request. unsupported(1) can only be set internally by the 0N/A * See java.lang.management.ThreadMXBean.isThreadCpuTimeSupported(), 0N/A * java.lang.management.ThreadMXBean.isThreadCpuTimeEnabled(), 0N/A * java.lang.management.ThreadMXBean.setThreadCpuTimeEnabled() 0N/A * Variable for storing the value of "JvmThreadContentionMonitoring". 0N/A * "The state of the Thread Contention Monitoring feature. 0N/A * This feature can be: 0N/A * unsupported: The JVM does not support Thread Contention Monitoring. 0N/A * enabled : The JVM supports Thread Contention Monitoring, and it 0N/A * disabled : The JVM supports Thread Contention Monitoring, and it 0N/A * Only enabled(3) and disabled(4) may be supplied as values to a 0N/A * SET request. unsupported(1) can only be set internally by the 0N/A * See java.lang.management.ThreadMXBean.isThreadContentionMonitoringSupported(), 0N/A * java.lang.management.ThreadMXBean.isThreadContentionMonitoringEnabled(), 0N/A * java.lang.management.ThreadMXBean.setThreadContentionMonitoringEnabled() 0N/A * Constructor for the "JvmThreading" group. 0N/A * If the group contains a table, the entries created through an SNMP SET 0N/A * will not be registered in Java DMK. 0N/A * Constructor for the "JvmThreading" group. 0N/A * If the group contains a table, the entries created through an SNMP SET 0N/A * will be AUTOMATICALLY REGISTERED in Java DMK. 0N/A log.
debug(
"JvmThreadingImpl",
"Constructor with server");
0N/A * ThreadMXBean accessor. It is acquired from the 0N/A * java.lang.management.ManagementFactory 0N/A * @return The local ThreadMXBean. 0N/A * Getter for the "JvmThreadCpuTimeMonitoring" variable. 0N/A "Unsupported ThreadCpuTimeMonitoring");
0N/A "Enabled ThreadCpuTimeMonitoring");
0N/A "Disabled ThreadCpuTimeMonitoring");
0N/A "Newly unsupported ThreadCpuTimeMonitoring");
0N/A * Setter for the "JvmThreadCpuTimeMonitoring" variable. 0N/A // We can trust the received value, it has been checked in 0N/A // checkJvmThreadCpuTimeMonitoring 0N/A * Checker for the "JvmThreadCpuTimeMonitoring" variable. 0N/A //Can't be set externaly to unsupported state. 0N/A "Try to set to illegal unsupported value");
0N/A // The value is a valid value. But is the feature supported? 0N/A "Unsupported operation, can't set state");
0N/A "unknown enum value ");
0N/A * Getter for the "JvmThreadContentionMonitoring" variable. 0N/A "Unsupported ThreadContentionMonitoring");
0N/A "Enabled ThreadContentionMonitoring");
0N/A "Disabled ThreadContentionMonitoring");
0N/A * Setter for the "JvmThreadContentionMonitoring" variable. 0N/A // We can trust the received value, it has been checked in 0N/A // checkJvmThreadContentionMonitoring 0N/A * Checker for the "JvmThreadContentionMonitoring" variable. 0N/A //Can't be set externaly to unsupported state. 0N/A "Try to set to illegal unsupported value");
0N/A // The value is valid, but is the feature supported ? 0N/A "Unsupported operation, can't set state");
0N/A "Try to set to unknown value");
0N/A * Getter for the "JvmThreadTotalStartedCount" variable. 0N/A * Getter for the "JvmThreadPeakCount" variable. 0N/A * Getter for the "JvmThreadDaemonCount" variable. 0N/A * Getter for the "JvmThreadCount" variable. 0N/A * Getter for the "JvmThreadPeakCountReset" variable. 0N/A * Setter for the "JvmThreadPeakCountReset" variable. 0N/A * Checker for the "JvmThreadPeakCountReset" variable. 0N/A /* Last time thread peak count was reset */