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.SnmpCounter; |
| 35 | import com.sun.jmx.snmp.SnmpCounter64; |
| 36 | import com.sun.jmx.snmp.SnmpGauge; |
| 37 | import com.sun.jmx.snmp.SnmpInt; |
| 38 | import com.sun.jmx.snmp.SnmpUnsignedInt; |
| 39 | import com.sun.jmx.snmp.SnmpIpAddress; |
| 40 | import com.sun.jmx.snmp.SnmpTimeticks; |
| 41 | import com.sun.jmx.snmp.SnmpOpaque; |
| 42 | import com.sun.jmx.snmp.SnmpString; |
| 43 | import com.sun.jmx.snmp.SnmpStringFixed; |
| 44 | import com.sun.jmx.snmp.SnmpOid; |
| 45 | import com.sun.jmx.snmp.SnmpNull; |
| 46 | import com.sun.jmx.snmp.SnmpValue; |
| 47 | import com.sun.jmx.snmp.SnmpVarBind; |
| 48 | import com.sun.jmx.snmp.SnmpStatusException; |
| 49 | |
| 50 | // jdmk imports |
| 51 | // |
| 52 | import com.sun.jmx.snmp.agent.SnmpMib; |
| 53 | import com.sun.jmx.snmp.agent.SnmpMibGroup; |
| 54 | import com.sun.jmx.snmp.agent.SnmpStandardObjectServer; |
| 55 | import com.sun.jmx.snmp.agent.SnmpStandardMetaServer; |
| 56 | import com.sun.jmx.snmp.agent.SnmpMibSubRequest; |
| 57 | import com.sun.jmx.snmp.agent.SnmpMibTable; |
| 58 | import com.sun.jmx.snmp.EnumRowStatus; |
| 59 | |
| 60 | import sun.management.snmp.jvmmib.JvmRuntimeMeta; |
| 61 | import sun.management.snmp.jvmmib.JvmRTInputArgsTableMeta; |
| 62 | import sun.management.snmp.jvmmib.JvmRTClassPathTableMeta; |
| 63 | import sun.management.snmp.jvmmib.JvmRTBootClassPathTableMeta; |
| 64 | import sun.management.snmp.jvmmib.JvmRTLibraryPathTableMeta; |
| 65 | |
| 66 | /** |
| 67 | * The class is used for representing SNMP metadata for the "JvmRuntime" group. |
| 68 | */ |
| 69 | public class JvmRuntimeMetaImpl extends JvmRuntimeMeta { |
| 70 | |
| 71 | /** |
| 72 | * Constructor for the metadata associated to "JvmRuntime". |
| 73 | */ |
| 74 | public JvmRuntimeMetaImpl(SnmpMib myMib, |
| 75 | SnmpStandardObjectServer objserv) { |
| 76 | super(myMib, objserv); |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Factory method for "JvmRTInputArgsTable" table metadata class. |
| 81 | * |
| 82 | * You can redefine this method if you need to replace the default |
| 83 | * generated metadata class with your own customized class. |
| 84 | * |
| 85 | * @param tableName Name of the table object ("JvmRTInputArgsTable") |
| 86 | * @param groupName Name of the group to which this table belong |
| 87 | * ("JvmRuntime") |
| 88 | * @param mib The SnmpMib object in which this table is registered |
| 89 | * @param server MBeanServer for this table entries (may be null) |
| 90 | * |
| 91 | * @return An instance of the metadata class generated for the |
| 92 | * "JvmRTInputArgsTable" table (JvmRTInputArgsTableMeta) |
| 93 | * |
| 94 | **/ |
| 95 | protected JvmRTInputArgsTableMeta |
| 96 | createJvmRTInputArgsTableMetaNode(String tableName, String groupName, |
| 97 | SnmpMib mib, MBeanServer server) { |
| 98 | return new JvmRTInputArgsTableMetaImpl(mib, objectserver); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Factory method for "JvmRTLibraryPathTable" table metadata class. |
| 103 | * |
| 104 | * You can redefine this method if you need to replace the default |
| 105 | * generated metadata class with your own customized class. |
| 106 | * |
| 107 | * @param tableName Name of the table object ("JvmRTLibraryPathTable") |
| 108 | * @param groupName Name of the group to which this table belong |
| 109 | * ("JvmRuntime") |
| 110 | * @param mib The SnmpMib object in which this table is registered |
| 111 | * @param server MBeanServer for this table entries (may be null) |
| 112 | * |
| 113 | * @return An instance of the metadata class generated for the |
| 114 | * "JvmRTLibraryPathTable" table (JvmRTLibraryPathTableMeta) |
| 115 | * |
| 116 | **/ |
| 117 | protected JvmRTLibraryPathTableMeta |
| 118 | createJvmRTLibraryPathTableMetaNode(String tableName, |
| 119 | String groupName, |
| 120 | SnmpMib mib, |
| 121 | MBeanServer server) { |
| 122 | return new JvmRTLibraryPathTableMetaImpl(mib, objectserver); |
| 123 | } |
| 124 | |
| 125 | |
| 126 | /** |
| 127 | * Factory method for "JvmRTClassPathTable" 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 ("JvmRTClassPathTable") |
| 133 | * @param groupName Name of the group to which this table belong |
| 134 | * ("JvmRuntime") |
| 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 | * "JvmRTClassPathTable" table (JvmRTClassPathTableMeta) |
| 140 | * |
| 141 | **/ |
| 142 | protected JvmRTClassPathTableMeta |
| 143 | createJvmRTClassPathTableMetaNode(String tableName, String groupName, |
| 144 | SnmpMib mib, MBeanServer server) { |
| 145 | return new JvmRTClassPathTableMetaImpl(mib, objectserver); |
| 146 | } |
| 147 | |
| 148 | |
| 149 | /** |
| 150 | * Factory method for "JvmRTBootClassPathTable" table metadata class. |
| 151 | * |
| 152 | * You can redefine this method if you need to replace the default |
| 153 | * generated metadata class with your own customized class. |
| 154 | * |
| 155 | * @param tableName Name of the table object ("JvmRTBootClassPathTable") |
| 156 | * @param groupName Name of the group to which this table belong |
| 157 | * ("JvmRuntime") |
| 158 | * @param mib The SnmpMib object in which this table is registered |
| 159 | * @param server MBeanServer for this table entries (may be null) |
| 160 | * |
| 161 | * @return An instance of the metadata class generated for the |
| 162 | * "JvmRTBootClassPathTable" table (JvmRTBootClassPathTableMeta) |
| 163 | * |
| 164 | **/ |
| 165 | protected JvmRTBootClassPathTableMeta |
| 166 | createJvmRTBootClassPathTableMetaNode(String tableName, |
| 167 | String groupName, |
| 168 | SnmpMib mib, |
| 169 | MBeanServer server) { |
| 170 | return new JvmRTBootClassPathTableMetaImpl(mib, objectserver); |
| 171 | } |
| 172 | |
| 173 | |
| 174 | } |