2362N/A * Copyright (c) 2003, 2006, Oracle and/or its affiliates. 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 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle 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. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A//java management imports 0N/A * Handler waiting for memory <CODE>Notification</CODE>. 0N/A * Translate each JMX notification in SNMP trap. 0N/A log.
debug(
"handleNotification",
"Received notification [ " +
0N/A "Error: Can't find entry index for Memory Pool: " 0N/A "Exception occured : " + e);
0N/A * List of notification targets. 0N/A * Instantiate a JVM MIB intrusmentation. 0N/A * A <CODE>NotificationListener</CODE> is added to the <CODE>MemoryMXBean</CODE> 0N/A * <CODE>NotificationEmitter</CODE> 0N/A log.
error(
"sendTrap",
"Cannot send trap: adaptor is null.");
0N/A log.
config(
"sendTrap",
"Adaptor is not active: trap not sent.");
0N/A "Exception occured while sending trap to [" +
0N/A * Add a notification target. 0N/A * @param target The target to add 0N/A * @throws IllegalArgumentException If target parameter is null. 0N/A * Remove notification listener. 0N/A * Add notification targets. 0N/A * @param targets A list of 0N/A * <CODE>sun.management.snmp.jvminstr.NotificationTarget</CODE> 0N/A * @throws IllegalArgumentException If targets parameter is null. 0N/A * Factory method for "JvmMemory" group MBean. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated MBean class with your own customized class. 0N/A * @param groupName Name of the group ("JvmMemory") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the MBean class generated for the 0N/A * "JvmMemory" group (JvmMemory) 0N/A * Note that when using standard metadata, 0N/A * the returned object must implement the "JvmMemoryMBean" 0N/A // Note that when using standard metadata, 0N/A // the returned object must implement the "JvmMemoryMBean" 0N/A * Factory method for "JvmMemory" group metadata class. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated metadata class with your own customized class. 0N/A * @param groupName Name of the group ("JvmMemory") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the metadata class generated for the 0N/A * "JvmMemory" group (JvmMemoryMeta) 0N/A * Factory method for "JvmThreading" group metadata class. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated metadata class with your own customized class. 0N/A * @param groupName Name of the group ("JvmThreading") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the metadata class generated for the 0N/A * "JvmThreading" group (JvmThreadingMeta) 0N/A * Factory method for "JvmThreading" group MBean. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated MBean class with your own customized class. 0N/A * @param groupName Name of the group ("JvmThreading") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the MBean class generated for the 0N/A * "JvmThreading" group (JvmThreading) 0N/A * Note that when using standard metadata, 0N/A * the returned object must implement the "JvmThreadingMBean" 0N/A // Note that when using standard metadata, 0N/A // the returned object must implement the "JvmThreadingMBean" 0N/A * Factory method for "JvmRuntime" group metadata class. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated metadata class with your own customized class. 0N/A * @param groupName Name of the group ("JvmRuntime") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the metadata class generated for the 0N/A * "JvmRuntime" group (JvmRuntimeMeta) 0N/A * Factory method for "JvmRuntime" group MBean. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated MBean class with your own customized class. 0N/A * @param groupName Name of the group ("JvmRuntime") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the MBean class generated for the 0N/A * "JvmRuntime" group (JvmRuntime) 0N/A * Note that when using standard metadata, 0N/A * the returned object must implement the "JvmRuntimeMBean" 0N/A // Note that when using standard metadata, 0N/A // the returned object must implement the "JvmRuntimeMBean" 0N/A * Factory method for "JvmCompilation" group metadata class. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated metadata class with your own customized class. 0N/A * @param groupName Name of the group ("JvmCompilation") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the metadata class generated for the 0N/A * "JvmCompilation" group (JvmCompilationMeta) 0N/A // If there is no compilation system, the jvmCompilation will not 0N/A * Factory method for "JvmCompilation" group MBean. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated MBean class with your own customized class. 0N/A * @param groupName Name of the group ("JvmCompilation") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the MBean class generated for the 0N/A * "JvmCompilation" group (JvmCompilation) 0N/A * Note that when using standard metadata, 0N/A * the returned object must implement the "JvmCompilationMBean" 0N/A // Note that when using standard metadata, 0N/A // the returned object must implement the "JvmCompilationMBean" 0N/A * Factory method for "JvmOS" group MBean. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated MBean class with your own customized class. 0N/A * @param groupName Name of the group ("JvmOS") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the MBean class generated for the 0N/A * "JvmOS" group (JvmOS) 0N/A * Note that when using standard metadata, 0N/A * the returned object must implement the "JvmOSMBean" 0N/A // Note that when using standard metadata, 0N/A // the returned object must implement the "JvmOSMBean" 0N/A * Factory method for "JvmClassLoading" group MBean. 0N/A * You can redefine this method if you need to replace the default 0N/A * generated MBean class with your own customized class. 0N/A * @param groupName Name of the group ("JvmClassLoading") 0N/A * @param groupOid OID of this group 0N/A * @param groupObjname ObjectName for this group (may be null) 0N/A * @param server MBeanServer for this group (may be null) 0N/A * @return An instance of the MBean class generated for the 0N/A * "JvmClassLoading" group (JvmClassLoading) 0N/A * Note that when using standard metadata, 0N/A * the returned object must implement the "JvmClassLoadingMBean" 0N/A // Note that when using standard metadata, 0N/A // the returned object must implement the "JvmClassLoadingMBean" 0N/A * WARNING: This should probably be moved to JvmMemPoolTableMetaImpl 0N/A "Bad metadata class for JvmMemPoolTable: " +
0N/A * WARNING: This should probably be moved to JvmMemPoolTableMetaImpl 0N/A final String err =
"Bad class for JvmMemPoolTable datas: " +
0N/A * WARNING: This should probably be moved to JvmMemPoolTableMetaImpl 0N/A // Should we define a property for this? Should we have different 0N/A // cache validity periods depending on which table we cache? 0N/A // Defined in RFC 2579