JVM_MANAGEMENT_MIB_IMPL.java revision 2362
2N/A * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. 2N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2N/A * This code is free software; you can redistribute it and/or modify it 2N/A * under the terms of the GNU General Public License version 2 only, as 2N/A * published by the Free Software Foundation. Oracle designates this 2N/A * particular file as subject to the "Classpath" exception as provided 2N/A * by Oracle in the LICENSE file that accompanied this code. 2N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2N/A * version 2 for more details (a copy is included in the LICENSE file that 2N/A * accompanied this code). 2N/A * You should have received a copy of the GNU General Public License version 2N/A * 2 along with this work; if not, write to the Free Software Foundation, 2N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2N/A * or visit www.oracle.com if you need additional information or have any //java management imports * Handler waiting for memory <CODE>Notification</CODE>. * Translate each JMX notification in SNMP trap. log.
debug(
"handleNotification",
"Received notification [ " +
"Error: Can't find entry index for Memory Pool: " "No trap emitted for " +
type);
"Exception occured : " + e);
* List of notification targets. * Instantiate a JVM MIB intrusmentation. * A <CODE>NotificationListener</CODE> is added to the <CODE>MemoryMXBean</CODE> * <CODE>NotificationEmitter</CODE> log.
error(
"sendTrap",
"Cannot send trap: adaptor is null.");
log.
config(
"sendTrap",
"Adaptor is not active: trap not sent.");
log.
debug(
"handleNotification",
"Sending trap to " +
"Exception occured while sending trap to [" +
target +
"]. Exception : " + e);
* Add a notification target. * @param target The target to add * @throws IllegalArgumentException If target parameter is null. * Remove notification listener. log.
error(
"terminate",
"Listener Not found : " + e);
* Add notification targets. * @param targets A list of * <CODE>sun.management.snmp.jvminstr.NotificationTarget</CODE> * @throws IllegalArgumentException If targets parameter is null. * Factory method for "JvmMemory" group MBean. * You can redefine this method if you need to replace the default * generated MBean class with your own customized class. * @param groupName Name of the group ("JvmMemory") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the MBean class generated for the * "JvmMemory" group (JvmMemory) * Note that when using standard metadata, * the returned object must implement the "JvmMemoryMBean" // Note that when using standard metadata, // the returned object must implement the "JvmMemoryMBean" * Factory method for "JvmMemory" group metadata class. * You can redefine this method if you need to replace the default * generated metadata class with your own customized class. * @param groupName Name of the group ("JvmMemory") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the metadata class generated for the * "JvmMemory" group (JvmMemoryMeta) * Factory method for "JvmThreading" group metadata class. * You can redefine this method if you need to replace the default * generated metadata class with your own customized class. * @param groupName Name of the group ("JvmThreading") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the metadata class generated for the * "JvmThreading" group (JvmThreadingMeta) * Factory method for "JvmThreading" group MBean. * You can redefine this method if you need to replace the default * generated MBean class with your own customized class. * @param groupName Name of the group ("JvmThreading") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the MBean class generated for the * "JvmThreading" group (JvmThreading) * Note that when using standard metadata, * the returned object must implement the "JvmThreadingMBean" // Note that when using standard metadata, // the returned object must implement the "JvmThreadingMBean" * Factory method for "JvmRuntime" group metadata class. * You can redefine this method if you need to replace the default * generated metadata class with your own customized class. * @param groupName Name of the group ("JvmRuntime") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the metadata class generated for the * "JvmRuntime" group (JvmRuntimeMeta) * Factory method for "JvmRuntime" group MBean. * You can redefine this method if you need to replace the default * generated MBean class with your own customized class. * @param groupName Name of the group ("JvmRuntime") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the MBean class generated for the * "JvmRuntime" group (JvmRuntime) * Note that when using standard metadata, * the returned object must implement the "JvmRuntimeMBean" // Note that when using standard metadata, // the returned object must implement the "JvmRuntimeMBean" * Factory method for "JvmCompilation" group metadata class. * You can redefine this method if you need to replace the default * generated metadata class with your own customized class. * @param groupName Name of the group ("JvmCompilation") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the metadata class generated for the * "JvmCompilation" group (JvmCompilationMeta) // If there is no compilation system, the jvmCompilation will not * Factory method for "JvmCompilation" group MBean. * You can redefine this method if you need to replace the default * generated MBean class with your own customized class. * @param groupName Name of the group ("JvmCompilation") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the MBean class generated for the * "JvmCompilation" group (JvmCompilation) * Note that when using standard metadata, * the returned object must implement the "JvmCompilationMBean" // Note that when using standard metadata, // the returned object must implement the "JvmCompilationMBean" * Factory method for "JvmOS" group MBean. * You can redefine this method if you need to replace the default * generated MBean class with your own customized class. * @param groupName Name of the group ("JvmOS") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the MBean class generated for the * Note that when using standard metadata, * the returned object must implement the "JvmOSMBean" // Note that when using standard metadata, // the returned object must implement the "JvmOSMBean" * Factory method for "JvmClassLoading" group MBean. * You can redefine this method if you need to replace the default * generated MBean class with your own customized class. * @param groupName Name of the group ("JvmClassLoading") * @param groupOid OID of this group * @param groupObjname ObjectName for this group (may be null) * @param server MBeanServer for this group (may be null) * @return An instance of the MBean class generated for the * "JvmClassLoading" group (JvmClassLoading) * Note that when using standard metadata, * the returned object must implement the "JvmClassLoadingMBean" // Note that when using standard metadata, // the returned object must implement the "JvmClassLoadingMBean" * WARNING: This should probably be moved to JvmMemPoolTableMetaImpl "Bad metadata class for JvmMemPoolTable: " +
* WARNING: This should probably be moved to JvmMemPoolTableMetaImpl final String err =
"Bad class for JvmMemPoolTable datas: " +
* WARNING: This should probably be moved to JvmMemPoolTableMetaImpl // Should we define a property for this? Should we have different // cache validity periods depending on which table we cache?