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.JvmThreadingMeta; |
| 61 | import sun.management.snmp.jvmmib.JvmThreadInstanceTableMeta; |
| 62 | |
| 63 | /** |
| 64 | * The class is used for representing SNMP metadata for the "JvmThreading" |
| 65 | * group. |
| 66 | */ |
| 67 | public class JvmThreadingMetaImpl extends JvmThreadingMeta { |
| 68 | |
| 69 | /** |
| 70 | * Constructor for the metadata associated to "JvmThreading". |
| 71 | */ |
| 72 | public JvmThreadingMetaImpl(SnmpMib myMib, |
| 73 | SnmpStandardObjectServer objserv) { |
| 74 | super(myMib, objserv); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Factory method for "JvmThreadInstanceTable" table metadata class. |
| 79 | * |
| 80 | * You can redefine this method if you need to replace the default |
| 81 | * generated metadata class with your own customized class. |
| 82 | * |
| 83 | * @param tableName Name of the table object ("JvmThreadInstanceTable") |
| 84 | * @param groupName Name of the group to which this table belong |
| 85 | * ("JvmThreading") |
| 86 | * @param mib The SnmpMib object in which this table is registered |
| 87 | * @param server MBeanServer for this table entries (may be null) |
| 88 | * |
| 89 | * @return An instance of the metadata class generated for the |
| 90 | * "JvmThreadInstanceTable" table (JvmThreadInstanceTableMeta) |
| 91 | * |
| 92 | **/ |
| 93 | protected JvmThreadInstanceTableMeta |
| 94 | createJvmThreadInstanceTableMetaNode(String tableName, |
| 95 | String groupName, |
| 96 | SnmpMib mib, |
| 97 | MBeanServer server) { |
| 98 | return new JvmThreadInstanceTableMetaImpl(mib, objectserver); |
| 99 | } |
| 100 | } |