/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
//
// Generated by mibgen version 5.0 (06/02/03) when compiling JVM-MANAGEMENT-MIB in standard metadata mode.
//
// java imports
//
// jmx imports
//
// jdmk imports
//
/**
* The class is used for representing "JVM-MANAGEMENT-MIB".
* You can edit the file if you want to modify the behaviour of the MIB.
*/
/**
* Default constructor. Initialize the Mib tree.
*/
public JVM_MANAGEMENT_MIB() {
mibName = "JVM_MANAGEMENT_MIB";
}
/**
* Initialization of the MIB with no registration in Java DMK.
*/
// Allow only one initialization of the MIB.
//
if (isInitialized == true) {
return ;
}
try {
} catch(IllegalAccessException x) {
throw x;
} catch(RuntimeException x) {
throw x;
} catch(Exception x) {
throw new Error(x.getMessage());
}
isInitialized = true;
}
/**
* Initialization of the MIB with AUTOMATIC REGISTRATION in Java DMK.
*/
throws Exception {
// Allow only one initialization of the MIB.
//
if (isInitialized == true) {
throw new InstanceAlreadyExistsException();
}
// Initialize MBeanServer information.
//
isInitialized = true;
return name;
}
/**
* Initialization of the MIB with no registration in Java DMK.
*/
throws Exception {
// Allow only one initialization of the MIB.
//
if (isInitialized == true) {
return ;
}
if (objectserver == null)
objectserver = new SnmpStandardObjectServer();
// Initialization of the "JvmOS" group.
// To disable support of this group, redefine the
// "createJvmOSMetaNode()" factory method, and make it return "null"
//
// Initialization of the "JvmCompilation" group.
// To disable support of this group, redefine the
// "createJvmCompilationMetaNode()" factory method, and make it return "null"
//
// Initialization of the "JvmRuntime" group.
// To disable support of this group, redefine the
// "createJvmRuntimeMetaNode()" factory method, and make it return "null"
//
// Initialization of the "JvmThreading" group.
// To disable support of this group, redefine the
// "createJvmThreadingMetaNode()" factory method, and make it return "null"
//
// Initialization of the "JvmMemory" group.
// To disable support of this group, redefine the
// "createJvmMemoryMetaNode()" factory method, and make it return "null"
//
// Initialization of the "JvmClassLoading" group.
// To disable support of this group, redefine the
// "createJvmClassLoadingMetaNode()" factory method, and make it return "null"
//
isInitialized = true;
}
// ------------------------------------------------------------
//
// Initialization of the "JvmOS" group.
//
// ------------------------------------------------------------
/**
* Initialization of the "JvmOS" group.
*
* To disable support of this group, redefine the
* "createJvmOSMetaNode()" factory method, and make it return "null"
*
* @param server MBeanServer for this group (may be null)
*
**/
throws Exception {
}
// Note that when using standard metadata,
// the returned object must implement the "JvmOSMBean"
// interface.
//
}
}
/**
* Factory method for "JvmOS" group metadata class.
*
* You can redefine this method if you need to replace the default
* generated metadata class with your own customized class.
*
* @param groupName Name of the group ("JvmOS")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the metadata class generated for the
* "JvmOS" group (JvmOSMeta)
*
**/
return new JvmOSMeta(this, objectserver);
}
/**
* Factory method for "JvmOS" group MBean.
*
* You can redefine this method if you need to replace the default
* generated MBean class with your own customized class.
*
* @param groupName Name of the group ("JvmOS")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the MBean class generated for the
* "JvmOS" group (JvmOS)
*
* Note that when using standard metadata,
* the returned object must implement the "JvmOSMBean"
* interface.
**/
// ------------------------------------------------------------
//
// Initialization of the "JvmCompilation" group.
//
// ------------------------------------------------------------
/**
* Initialization of the "JvmCompilation" group.
*
* To disable support of this group, redefine the
* "createJvmCompilationMetaNode()" factory method, and make it return "null"
*
* @param server MBeanServer for this group (may be null)
*
**/
throws Exception {
objname = getGroupObjectName("JvmCompilation", oid, mibName + ":name=sun.management.snmp.jvmmib.JvmCompilation");
}
final JvmCompilationMeta meta = createJvmCompilationMetaNode("JvmCompilation", oid, objname, server);
// Note that when using standard metadata,
// the returned object must implement the "JvmCompilationMBean"
// interface.
//
final JvmCompilationMBean group = (JvmCompilationMBean) createJvmCompilationMBean("JvmCompilation", oid, objname, server);
}
}
/**
* Factory method for "JvmCompilation" group metadata class.
*
* You can redefine this method if you need to replace the default
* generated metadata class with your own customized class.
*
* @param groupName Name of the group ("JvmCompilation")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the metadata class generated for the
* "JvmCompilation" group (JvmCompilationMeta)
*
**/
return new JvmCompilationMeta(this, objectserver);
}
/**
* Factory method for "JvmCompilation" group MBean.
*
* You can redefine this method if you need to replace the default
* generated MBean class with your own customized class.
*
* @param groupName Name of the group ("JvmCompilation")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the MBean class generated for the
* "JvmCompilation" group (JvmCompilation)
*
* Note that when using standard metadata,
* the returned object must implement the "JvmCompilationMBean"
* interface.
**/
// ------------------------------------------------------------
//
// Initialization of the "JvmRuntime" group.
//
// ------------------------------------------------------------
/**
* Initialization of the "JvmRuntime" group.
*
* To disable support of this group, redefine the
* "createJvmRuntimeMetaNode()" factory method, and make it return "null"
*
* @param server MBeanServer for this group (may be null)
*
**/
throws Exception {
objname = getGroupObjectName("JvmRuntime", oid, mibName + ":name=sun.management.snmp.jvmmib.JvmRuntime");
}
// Note that when using standard metadata,
// the returned object must implement the "JvmRuntimeMBean"
// interface.
//
final JvmRuntimeMBean group = (JvmRuntimeMBean) createJvmRuntimeMBean("JvmRuntime", oid, objname, server);
}
}
/**
* Factory method for "JvmRuntime" group metadata class.
*
* You can redefine this method if you need to replace the default
* generated metadata class with your own customized class.
*
* @param groupName Name of the group ("JvmRuntime")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the metadata class generated for the
* "JvmRuntime" group (JvmRuntimeMeta)
*
**/
return new JvmRuntimeMeta(this, objectserver);
}
/**
* Factory method for "JvmRuntime" group MBean.
*
* You can redefine this method if you need to replace the default
* generated MBean class with your own customized class.
*
* @param groupName Name of the group ("JvmRuntime")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the MBean class generated for the
* "JvmRuntime" group (JvmRuntime)
*
* Note that when using standard metadata,
* the returned object must implement the "JvmRuntimeMBean"
* interface.
**/
// ------------------------------------------------------------
//
// Initialization of the "JvmThreading" group.
//
// ------------------------------------------------------------
/**
* Initialization of the "JvmThreading" group.
*
* To disable support of this group, redefine the
* "createJvmThreadingMetaNode()" factory method, and make it return "null"
*
* @param server MBeanServer for this group (may be null)
*
**/
throws Exception {
objname = getGroupObjectName("JvmThreading", oid, mibName + ":name=sun.management.snmp.jvmmib.JvmThreading");
}
// Note that when using standard metadata,
// the returned object must implement the "JvmThreadingMBean"
// interface.
//
final JvmThreadingMBean group = (JvmThreadingMBean) createJvmThreadingMBean("JvmThreading", oid, objname, server);
}
}
/**
* Factory method for "JvmThreading" group metadata class.
*
* You can redefine this method if you need to replace the default
* generated metadata class with your own customized class.
*
* @param groupName Name of the group ("JvmThreading")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the metadata class generated for the
* "JvmThreading" group (JvmThreadingMeta)
*
**/
return new JvmThreadingMeta(this, objectserver);
}
/**
* Factory method for "JvmThreading" group MBean.
*
* You can redefine this method if you need to replace the default
* generated MBean class with your own customized class.
*
* @param groupName Name of the group ("JvmThreading")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the MBean class generated for the
* "JvmThreading" group (JvmThreading)
*
* Note that when using standard metadata,
* the returned object must implement the "JvmThreadingMBean"
* interface.
**/
// ------------------------------------------------------------
//
// Initialization of the "JvmMemory" group.
//
// ------------------------------------------------------------
/**
* Initialization of the "JvmMemory" group.
*
* To disable support of this group, redefine the
* "createJvmMemoryMetaNode()" factory method, and make it return "null"
*
* @param server MBeanServer for this group (may be null)
*
**/
throws Exception {
objname = getGroupObjectName("JvmMemory", oid, mibName + ":name=sun.management.snmp.jvmmib.JvmMemory");
}
// Note that when using standard metadata,
// the returned object must implement the "JvmMemoryMBean"
// interface.
//
final JvmMemoryMBean group = (JvmMemoryMBean) createJvmMemoryMBean("JvmMemory", oid, objname, server);
}
}
/**
* Factory method for "JvmMemory" group metadata class.
*
* You can redefine this method if you need to replace the default
* generated metadata class with your own customized class.
*
* @param groupName Name of the group ("JvmMemory")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the metadata class generated for the
* "JvmMemory" group (JvmMemoryMeta)
*
**/
return new JvmMemoryMeta(this, objectserver);
}
/**
* Factory method for "JvmMemory" group MBean.
*
* You can redefine this method if you need to replace the default
* generated MBean class with your own customized class.
*
* @param groupName Name of the group ("JvmMemory")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the MBean class generated for the
* "JvmMemory" group (JvmMemory)
*
* Note that when using standard metadata,
* the returned object must implement the "JvmMemoryMBean"
* interface.
**/
// ------------------------------------------------------------
//
// Initialization of the "JvmClassLoading" group.
//
// ------------------------------------------------------------
/**
* Initialization of the "JvmClassLoading" group.
*
* To disable support of this group, redefine the
* "createJvmClassLoadingMetaNode()" factory method, and make it return "null"
*
* @param server MBeanServer for this group (may be null)
*
**/
throws Exception {
objname = getGroupObjectName("JvmClassLoading", oid, mibName + ":name=sun.management.snmp.jvmmib.JvmClassLoading");
}
final JvmClassLoadingMeta meta = createJvmClassLoadingMetaNode("JvmClassLoading", oid, objname, server);
// Note that when using standard metadata,
// the returned object must implement the "JvmClassLoadingMBean"
// interface.
//
final JvmClassLoadingMBean group = (JvmClassLoadingMBean) createJvmClassLoadingMBean("JvmClassLoading", oid, objname, server);
}
}
/**
* Factory method for "JvmClassLoading" group metadata class.
*
* You can redefine this method if you need to replace the default
* generated metadata class with your own customized class.
*
* @param groupName Name of the group ("JvmClassLoading")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the metadata class generated for the
* "JvmClassLoading" group (JvmClassLoadingMeta)
*
**/
return new JvmClassLoadingMeta(this, objectserver);
}
/**
* Factory method for "JvmClassLoading" group MBean.
*
* You can redefine this method if you need to replace the default
* generated MBean class with your own customized class.
*
* @param groupName Name of the group ("JvmClassLoading")
* @param groupOid OID of this group
* @param groupObjname ObjectName for this group (may be null)
* @param server MBeanServer for this group (may be null)
*
* @return An instance of the MBean class generated for the
* "JvmClassLoading" group (JvmClassLoading)
*
* Note that when using standard metadata,
* the returned object must implement the "JvmClassLoadingMBean"
* interface.
**/
// ------------------------------------------------------------
//
// Implements the "registerTableMeta" method defined in "SnmpMib".
// See the "SnmpMib" Javadoc API for more details.
//
// ------------------------------------------------------------
}
// ------------------------------------------------------------
//
// Implements the "getRegisteredTableMeta" method defined in "SnmpMib".
// See the "SnmpMib" Javadoc API for more details.
//
// ------------------------------------------------------------
}
if (objectserver == null)
objectserver = new SnmpStandardObjectServer();
return objectserver;
}
private boolean isInitialized = false;
}