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.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      static final long serialVersionUID = -6570428414857608618L;
  72     /**
  73      * Constructor for the metadata associated to "JvmRuntime".
  74      */
  75     public JvmRuntimeMetaImpl(SnmpMib myMib,
  76                               SnmpStandardObjectServer objserv) {
  77         super(myMib, objserv);
  78     }
  79 
  80     /**
  81      * Factory method for "JvmRTInputArgsTable" table metadata class.
  82      *
  83      * You can redefine this method if you need to replace the default
  84      * generated metadata class with your own customized class.
  85      *
  86      * @param tableName Name of the table object ("JvmRTInputArgsTable")
  87      * @param groupName Name of the group to which this table belong
  88      *        ("JvmRuntime")
  89      * @param mib The SnmpMib object in which this table is registered
  90      * @param server MBeanServer for this table entries (may be null)
  91      *
  92      * @return An instance of the metadata class generated for the
  93      *         "JvmRTInputArgsTable" table (JvmRTInputArgsTableMeta)
  94      *
  95      **/
  96     protected JvmRTInputArgsTableMeta
  97         createJvmRTInputArgsTableMetaNode(String tableName, String groupName,
  98                                           SnmpMib mib, MBeanServer server)  {
  99         return new JvmRTInputArgsTableMetaImpl(mib, objectserver);
 100     }
 101 
 102     /**
 103      * Factory method for "JvmRTLibraryPathTable" table metadata class.
 104      *
 105      * You can redefine this method if you need to replace the default
 106      * generated metadata class with your own customized class.
 107      *
 108      * @param tableName Name of the table object ("JvmRTLibraryPathTable")
 109      * @param groupName Name of the group to which this table belong
 110      *        ("JvmRuntime")
 111      * @param mib The SnmpMib object in which this table is registered
 112      * @param server MBeanServer for this table entries (may be null)
 113      *
 114      * @return An instance of the metadata class generated for the
 115      *         "JvmRTLibraryPathTable" table (JvmRTLibraryPathTableMeta)
 116      *
 117      **/
 118     protected JvmRTLibraryPathTableMeta
 119         createJvmRTLibraryPathTableMetaNode(String tableName,
 120                                             String groupName,
 121                                             SnmpMib mib,
 122                                             MBeanServer server)  {
 123         return new JvmRTLibraryPathTableMetaImpl(mib, objectserver);
 124     }
 125 
 126 
 127     /**
 128      * Factory method for "JvmRTClassPathTable" table metadata class.
 129      *
 130      * You can redefine this method if you need to replace the default
 131      * generated metadata class with your own customized class.
 132      *
 133      * @param tableName Name of the table object ("JvmRTClassPathTable")
 134      * @param groupName Name of the group to which this table belong
 135      *        ("JvmRuntime")
 136      * @param mib The SnmpMib object in which this table is registered
 137      * @param server MBeanServer for this table entries (may be null)
 138      *
 139      * @return An instance of the metadata class generated for the
 140      *         "JvmRTClassPathTable" table (JvmRTClassPathTableMeta)
 141      *
 142      **/
 143     protected JvmRTClassPathTableMeta
 144         createJvmRTClassPathTableMetaNode(String tableName, String groupName,
 145                                           SnmpMib mib, MBeanServer server)  {
 146         return new JvmRTClassPathTableMetaImpl(mib, objectserver);
 147     }
 148 
 149 
 150     /**
 151      * Factory method for "JvmRTBootClassPathTable" table metadata class.
 152      *
 153      * You can redefine this method if you need to replace the default
 154      * generated metadata class with your own customized class.
 155      *
 156      * @param tableName Name of the table object ("JvmRTBootClassPathTable")
 157      * @param groupName Name of the group to which this table belong
 158      *        ("JvmRuntime")
 159      * @param mib The SnmpMib object in which this table is registered
 160      * @param server MBeanServer for this table entries (may be null)
 161      *
 162      * @return An instance of the metadata class generated for the
 163      *         "JvmRTBootClassPathTable" table (JvmRTBootClassPathTableMeta)
 164      *
 165      **/
 166     protected JvmRTBootClassPathTableMeta
 167         createJvmRTBootClassPathTableMetaNode(String tableName,
 168                                               String groupName,
 169                                               SnmpMib mib,
 170                                               MBeanServer server)  {
 171         return new JvmRTBootClassPathTableMetaImpl(mib, objectserver);
 172     }
 173 
 174 
 175 }