1 /*
   2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. 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.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * 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     static final long serialVersionUID = -2104788458393251457L;
  70 
  71     /**
  72      * Constructor for the metadata associated to "JvmThreading".
  73      */
  74     public JvmThreadingMetaImpl(SnmpMib myMib,
  75                                 SnmpStandardObjectServer objserv) {
  76         super(myMib, objserv);
  77     }
  78 
  79     /**
  80      * Factory method for "JvmThreadInstanceTable" 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 ("JvmThreadInstanceTable")
  86      * @param groupName Name of the group to which this table belong
  87      *        ("JvmThreading")
  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      *         "JvmThreadInstanceTable" table (JvmThreadInstanceTableMeta)
  93      *
  94      **/
  95     protected JvmThreadInstanceTableMeta
  96         createJvmThreadInstanceTableMetaNode(String tableName,
  97                                              String groupName,
  98                                              SnmpMib mib,
  99                                              MBeanServer server)  {
 100         return new JvmThreadInstanceTableMetaImpl(mib, objectserver);
 101     }
 102 }