jdk/src/share/classes/sun/management/snmp/jvminstr/JvmRuntimeMetaImpl.java
author mchung
Tue, 17 Jan 2012 15:55:40 -0800
changeset 11530 a9d059c15b80
parent 5506 202f599c92aa
child 14342 8435a30053c1
permissions -rw-r--r--
7117570: Warnings in sun.mangement.* and its subpackages Reviewed-by: mchung, dsamersoff Contributed-by: kurchi.subhra.hazra@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
package sun.management.snmp.jvminstr;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
// java imports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
//
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.io.Serializable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
// jmx imports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
//
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import javax.management.MBeanServer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import com.sun.jmx.snmp.SnmpCounter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
import com.sun.jmx.snmp.SnmpCounter64;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import com.sun.jmx.snmp.SnmpGauge;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import com.sun.jmx.snmp.SnmpInt;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
import com.sun.jmx.snmp.SnmpUnsignedInt;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
import com.sun.jmx.snmp.SnmpIpAddress;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
import com.sun.jmx.snmp.SnmpTimeticks;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
import com.sun.jmx.snmp.SnmpOpaque;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
import com.sun.jmx.snmp.SnmpString;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
import com.sun.jmx.snmp.SnmpStringFixed;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
import com.sun.jmx.snmp.SnmpOid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
import com.sun.jmx.snmp.SnmpNull;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
import com.sun.jmx.snmp.SnmpValue;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
import com.sun.jmx.snmp.SnmpVarBind;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
import com.sun.jmx.snmp.SnmpStatusException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
// jdmk imports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
//
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
import com.sun.jmx.snmp.agent.SnmpMib;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
import com.sun.jmx.snmp.agent.SnmpMibGroup;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
import com.sun.jmx.snmp.agent.SnmpStandardObjectServer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
import com.sun.jmx.snmp.agent.SnmpStandardMetaServer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
import com.sun.jmx.snmp.agent.SnmpMibSubRequest;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
import com.sun.jmx.snmp.agent.SnmpMibTable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
import com.sun.jmx.snmp.EnumRowStatus;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
import sun.management.snmp.jvmmib.JvmRuntimeMeta;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
import sun.management.snmp.jvmmib.JvmRTInputArgsTableMeta;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
import sun.management.snmp.jvmmib.JvmRTClassPathTableMeta;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
import sun.management.snmp.jvmmib.JvmRTBootClassPathTableMeta;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
import sun.management.snmp.jvmmib.JvmRTLibraryPathTableMeta;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * The class is used for representing SNMP metadata for the "JvmRuntime" group.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
public class JvmRuntimeMetaImpl extends JvmRuntimeMeta {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
11530
a9d059c15b80 7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents: 5506
diff changeset
    71
     static final long serialVersionUID = -6570428414857608618L;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * Constructor for the metadata associated to "JvmRuntime".
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    public JvmRuntimeMetaImpl(SnmpMib myMib,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
                              SnmpStandardObjectServer objserv) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        super(myMib, objserv);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * Factory method for "JvmRTInputArgsTable" table metadata class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * You can redefine this method if you need to replace the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * generated metadata class with your own customized class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * @param tableName Name of the table object ("JvmRTInputArgsTable")
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * @param groupName Name of the group to which this table belong
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     *        ("JvmRuntime")
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * @param mib The SnmpMib object in which this table is registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * @param server MBeanServer for this table entries (may be null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * @return An instance of the metadata class generated for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     *         "JvmRTInputArgsTable" table (JvmRTInputArgsTableMeta)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    protected JvmRTInputArgsTableMeta
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
        createJvmRTInputArgsTableMetaNode(String tableName, String groupName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
                                          SnmpMib mib, MBeanServer server)  {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        return new JvmRTInputArgsTableMetaImpl(mib, objectserver);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * Factory method for "JvmRTLibraryPathTable" table metadata class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * You can redefine this method if you need to replace the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * generated metadata class with your own customized class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * @param tableName Name of the table object ("JvmRTLibraryPathTable")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * @param groupName Name of the group to which this table belong
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     *        ("JvmRuntime")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * @param mib The SnmpMib object in which this table is registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * @param server MBeanServer for this table entries (may be null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * @return An instance of the metadata class generated for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     *         "JvmRTLibraryPathTable" table (JvmRTLibraryPathTableMeta)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    protected JvmRTLibraryPathTableMeta
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        createJvmRTLibraryPathTableMetaNode(String tableName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                                            String groupName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                                            SnmpMib mib,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
                                            MBeanServer server)  {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        return new JvmRTLibraryPathTableMetaImpl(mib, objectserver);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * Factory method for "JvmRTClassPathTable" table metadata class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * You can redefine this method if you need to replace the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * generated metadata class with your own customized class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * @param tableName Name of the table object ("JvmRTClassPathTable")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * @param groupName Name of the group to which this table belong
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     *        ("JvmRuntime")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * @param mib The SnmpMib object in which this table is registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * @param server MBeanServer for this table entries (may be null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * @return An instance of the metadata class generated for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     *         "JvmRTClassPathTable" table (JvmRTClassPathTableMeta)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    protected JvmRTClassPathTableMeta
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        createJvmRTClassPathTableMetaNode(String tableName, String groupName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                                          SnmpMib mib, MBeanServer server)  {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        return new JvmRTClassPathTableMetaImpl(mib, objectserver);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * Factory method for "JvmRTBootClassPathTable" table metadata class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * You can redefine this method if you need to replace the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * generated metadata class with your own customized class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * @param tableName Name of the table object ("JvmRTBootClassPathTable")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * @param groupName Name of the group to which this table belong
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     *        ("JvmRuntime")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * @param mib The SnmpMib object in which this table is registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * @param server MBeanServer for this table entries (may be null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * @return An instance of the metadata class generated for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     *         "JvmRTBootClassPathTable" table (JvmRTBootClassPathTableMeta)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     **/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    protected JvmRTBootClassPathTableMeta
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        createJvmRTBootClassPathTableMetaNode(String tableName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                                              String groupName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                                              SnmpMib mib,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                                              MBeanServer server)  {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
        return new JvmRTBootClassPathTableMetaImpl(mib, objectserver);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
}