J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. |
| 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License version 2 only, as |
| 7 | * published by the Free Software Foundation. Sun designates this |
| 8 | * particular file as subject to the "Classpath" exception as provided |
| 9 | * by Sun in the LICENSE file that accompanied this code. |
| 10 | * |
| 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
| 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 14 | * version 2 for more details (a copy is included in the LICENSE file that |
| 15 | * accompanied this code). |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License version |
| 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
| 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | * |
| 21 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 22 | * CA 95054 USA or visit www.sun.com if you need additional information or |
| 23 | * have any questions. |
| 24 | */ |
| 25 | package sun.management.snmp.jvminstr; |
| 26 | |
| 27 | // java imports |
| 28 | // |
| 29 | import java.io.Serializable; |
| 30 | |
| 31 | // jmx imports |
| 32 | // |
| 33 | import javax.management.MBeanServer; |
| 34 | import com.sun.jmx.snmp.SnmpOid; |
| 35 | import com.sun.jmx.snmp.SnmpStatusException; |
| 36 | |
| 37 | // jdmk imports |
| 38 | // |
| 39 | import com.sun.jmx.snmp.agent.SnmpMib; |
| 40 | import com.sun.jmx.snmp.agent.SnmpStandardObjectServer; |
| 41 | |
| 42 | import sun.management.snmp.jvmmib.JvmMemoryMeta; |
| 43 | import sun.management.snmp.jvmmib.JvmMemManagerTableMeta; |
| 44 | import sun.management.snmp.jvmmib.JvmMemGCTableMeta; |
| 45 | import sun.management.snmp.jvmmib.JvmMemPoolTableMeta; |
| 46 | import sun.management.snmp.jvmmib.JvmMemMgrPoolRelTableMeta; |
| 47 | import sun.management.snmp.util.MibLogger; |
| 48 | |
| 49 | /** |
| 50 | * The class is used for representing SNMP metadata for the "JvmMemory" group. |
| 51 | */ |
| 52 | public class JvmMemoryMetaImpl extends JvmMemoryMeta { |
| 53 | /** |
| 54 | * Constructor for the metadata associated to "JvmMemory". |
| 55 | */ |
| 56 | public JvmMemoryMetaImpl(SnmpMib myMib, SnmpStandardObjectServer objserv) { |
| 57 | super(myMib,objserv); |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Factory method for "JvmMemManagerTable" table metadata class. |
| 62 | * |
| 63 | * You can redefine this method if you need to replace the default |
| 64 | * generated metadata class with your own customized class. |
| 65 | * |
| 66 | * @param tableName Name of the table object ("JvmMemManagerTable") |
| 67 | * @param groupName Name of the group to which this table belong |
| 68 | * ("JvmMemory") |
| 69 | * @param mib The SnmpMib object in which this table is registered |
| 70 | * @param server MBeanServer for this table entries (may be null) |
| 71 | * |
| 72 | * @return An instance of the metadata class generated for the |
| 73 | * "JvmMemManagerTable" table (JvmMemManagerTableMeta) |
| 74 | * |
| 75 | **/ |
| 76 | protected JvmMemManagerTableMeta createJvmMemManagerTableMetaNode( |
| 77 | String tableName, String groupName, SnmpMib mib, MBeanServer server) { |
| 78 | return new JvmMemManagerTableMetaImpl(mib, objectserver); |
| 79 | } |
| 80 | |
| 81 | |
| 82 | /** |
| 83 | * Factory method for "JvmMemGCTable" table metadata class. |
| 84 | * |
| 85 | * You can redefine this method if you need to replace the default |
| 86 | * generated metadata class with your own customized class. |
| 87 | * |
| 88 | * @param tableName Name of the table object ("JvmMemGCTable") |
| 89 | * @param groupName Name of the group to which this table belong |
| 90 | * ("JvmMemory") |
| 91 | * @param mib The SnmpMib object in which this table is registered |
| 92 | * @param server MBeanServer for this table entries (may be null) |
| 93 | * |
| 94 | * @return An instance of the metadata class generated for the |
| 95 | * "JvmMemGCTable" table (JvmMemGCTableMeta) |
| 96 | * |
| 97 | **/ |
| 98 | protected JvmMemGCTableMeta createJvmMemGCTableMetaNode(String tableName, |
| 99 | String groupName, SnmpMib mib, MBeanServer server) { |
| 100 | return new JvmMemGCTableMetaImpl(mib, objectserver); |
| 101 | } |
| 102 | |
| 103 | |
| 104 | /** |
| 105 | * Factory method for "JvmMemPoolTable" table metadata class. |
| 106 | * |
| 107 | * You can redefine this method if you need to replace the default |
| 108 | * generated metadata class with your own customized class. |
| 109 | * |
| 110 | * @param tableName Name of the table object ("JvmMemPoolTable") |
| 111 | * @param groupName Name of the group to which this table belong |
| 112 | * ("JvmMemory") |
| 113 | * @param mib The SnmpMib object in which this table is registered |
| 114 | * @param server MBeanServer for this table entries (may be null) |
| 115 | * |
| 116 | * @return An instance of the metadata class generated for the |
| 117 | * "JvmMemPoolTable" table (JvmMemPoolTableMeta) |
| 118 | * |
| 119 | **/ |
| 120 | protected JvmMemPoolTableMeta |
| 121 | createJvmMemPoolTableMetaNode(String tableName, String groupName, |
| 122 | SnmpMib mib, MBeanServer server) { |
| 123 | return new JvmMemPoolTableMetaImpl(mib, objectserver); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Factory method for "JvmMemMgrPoolRelTable" table metadata class. |
| 128 | * |
| 129 | * You can redefine this method if you need to replace the default |
| 130 | * generated metadata class with your own customized class. |
| 131 | * |
| 132 | * @param tableName Name of the table object ("JvmMemMgrPoolRelTable") |
| 133 | * @param groupName Name of the group to which this table belong |
| 134 | * ("JvmMemory") |
| 135 | * @param mib The SnmpMib object in which this table is registered |
| 136 | * @param server MBeanServer for this table entries (may be null) |
| 137 | * |
| 138 | * @return An instance of the metadata class generated for the |
| 139 | * "JvmMemMgrPoolRelTable" table (JvmMemMgrPoolRelTableMeta) |
| 140 | * |
| 141 | **/ |
| 142 | protected JvmMemMgrPoolRelTableMeta |
| 143 | createJvmMemMgrPoolRelTableMetaNode(String tableName, |
| 144 | String groupName, |
| 145 | SnmpMib mib, MBeanServer server) { |
| 146 | return new JvmMemMgrPoolRelTableMetaImpl(mib, objectserver); |
| 147 | } |
| 148 | |
| 149 | } |