blob: 3a22d944d520c2911d2023a7db6050728f6662dd [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
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 */
25package sun.management.snmp.jvminstr;
26
27// java imports
28//
29import java.io.Serializable;
30
31// jmx imports
32//
33import javax.management.MBeanServer;
34import com.sun.jmx.snmp.SnmpCounter;
35import com.sun.jmx.snmp.SnmpCounter64;
36import com.sun.jmx.snmp.SnmpGauge;
37import com.sun.jmx.snmp.SnmpInt;
38import com.sun.jmx.snmp.SnmpUnsignedInt;
39import com.sun.jmx.snmp.SnmpIpAddress;
40import com.sun.jmx.snmp.SnmpTimeticks;
41import com.sun.jmx.snmp.SnmpOpaque;
42import com.sun.jmx.snmp.SnmpString;
43import com.sun.jmx.snmp.SnmpStringFixed;
44import com.sun.jmx.snmp.SnmpOid;
45import com.sun.jmx.snmp.SnmpNull;
46import com.sun.jmx.snmp.SnmpValue;
47import com.sun.jmx.snmp.SnmpVarBind;
48import com.sun.jmx.snmp.SnmpStatusException;
49
50// jdmk imports
51//
52import com.sun.jmx.snmp.agent.SnmpMib;
53import com.sun.jmx.snmp.agent.SnmpMibGroup;
54import com.sun.jmx.snmp.agent.SnmpStandardObjectServer;
55import com.sun.jmx.snmp.agent.SnmpStandardMetaServer;
56import com.sun.jmx.snmp.agent.SnmpMibSubRequest;
57import com.sun.jmx.snmp.agent.SnmpMibTable;
58import com.sun.jmx.snmp.EnumRowStatus;
59
60import sun.management.snmp.jvmmib.JvmThreadingMeta;
61import sun.management.snmp.jvmmib.JvmThreadInstanceTableMeta;
62
63/**
64 * The class is used for representing SNMP metadata for the "JvmThreading"
65 * group.
66 */
67public 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}