public abstract class

JVM_MANAGEMENT_MIB

extends SnmpMib
implements Serializable
java.lang.Object
   ↳ com.sun.jmx.snmp.agent.SnmpMibAgent
     ↳ com.sun.jmx.snmp.agent.SnmpMib
       ↳ sun.management.snmp.jvmmib.JVM_MANAGEMENT_MIB
Known Direct Subclasses

Class Overview

The class is used for representing "JVM-MANAGEMENT-MIB". You can edit the file if you want to modify the behaviour of the MIB.

Summary

Fields
protected final Hashtable<StringSnmpMibTable> metadatas
protected SnmpStandardObjectServer objectserver
[Expand]
Inherited Fields
From class com.sun.jmx.snmp.agent.SnmpMib
From class com.sun.jmx.snmp.agent.SnmpMibAgent
Public Constructors
JVM_MANAGEMENT_MIB()
Default constructor.
Public Methods
SnmpMibTable getRegisteredTableMeta(String name)
Returns a registered SNMP Table metadata node.
SnmpStandardObjectServer getStandardObjectServer()
void init()
Initialization of the MIB with no registration in Java DMK.
void populate(MBeanServer server, ObjectName name)
Initialization of the MIB with no registration in Java DMK.
ObjectName preRegister(MBeanServer server, ObjectName name)
Initialization of the MIB with AUTOMATIC REGISTRATION in Java DMK.
void registerTableMeta(String name, SnmpMibTable meta)

Register an SNMP Table metadata node in the MIB.

Protected Methods
abstract Object createJvmClassLoadingMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmClassLoading" group MBean.
JvmClassLoadingMeta createJvmClassLoadingMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmClassLoading" group metadata class.
abstract Object createJvmCompilationMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmCompilation" group MBean.
JvmCompilationMeta createJvmCompilationMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmCompilation" group metadata class.
abstract Object createJvmMemoryMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmMemory" group MBean.
JvmMemoryMeta createJvmMemoryMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmMemory" group metadata class.
abstract Object createJvmOSMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmOS" group MBean.
JvmOSMeta createJvmOSMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmOS" group metadata class.
abstract Object createJvmRuntimeMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmRuntime" group MBean.
JvmRuntimeMeta createJvmRuntimeMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmRuntime" group metadata class.
abstract Object createJvmThreadingMBean(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmThreading" group MBean.
JvmThreadingMeta createJvmThreadingMetaNode(String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)
Factory method for "JvmThreading" group metadata class.
void initJvmClassLoading(MBeanServer server)
Initialization of the "JvmClassLoading" group.
void initJvmCompilation(MBeanServer server)
Initialization of the "JvmCompilation" group.
void initJvmMemory(MBeanServer server)
Initialization of the "JvmMemory" group.
void initJvmOS(MBeanServer server)
Initialization of the "JvmOS" group.
void initJvmRuntime(MBeanServer server)
Initialization of the "JvmRuntime" group.
void initJvmThreading(MBeanServer server)
Initialization of the "JvmThreading" group.
[Expand]
Inherited Methods
From class com.sun.jmx.snmp.agent.SnmpMib
From class com.sun.jmx.snmp.agent.SnmpMibAgent
From class java.lang.Object
From interface com.sun.jmx.snmp.agent.SnmpMibAgentMBean
From interface javax.management.MBeanRegistration

Fields

protected final Hashtable<StringSnmpMibTable> metadatas

protected SnmpStandardObjectServer objectserver

Public Constructors

public JVM_MANAGEMENT_MIB ()

Default constructor. Initialize the Mib tree.

Public Methods

public SnmpMibTable getRegisteredTableMeta (String name)

Returns a registered SNMP Table metadata node.

This method is used internally and you should never need to call it directly.

public SnmpStandardObjectServer getStandardObjectServer ()

public void init ()

Initialization of the MIB with no registration in Java DMK.

public void populate (MBeanServer server, ObjectName name)

Initialization of the MIB with no registration in Java DMK.

Throws
Exception

public ObjectName preRegister (MBeanServer server, ObjectName name)

Initialization of the MIB with AUTOMATIC REGISTRATION in Java DMK.

Parameters
server The MBean server to register the service with.
name The object name.
Returns
  • The name of the SNMP MIB registered.
Throws
Exception

public void registerTableMeta (String name, SnmpMibTable meta)

Register an SNMP Table metadata node in the MIB.

This method is used internally and you should never need to call it directly.
It is used to establish the link between an SNMP table metadata node and its bean-like counterpart.
The group metadata nodes will create and register their underlying table metadata nodes in the MIB using this method.
The metadata nodes will be later retrieved from the MIB by the bean-like table objects using the getRegisterTableMeta() method.

Parameters
name The java-ized name of the SNMP table.
meta The SNMP table metadata node - usually this corresponds to a mibgen generated object.

Protected Methods

protected abstract Object createJvmClassLoadingMBean (String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)

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.

Parameters
groupName Name of the group ("JvmClassLoading")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • 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.

protected JvmClassLoadingMeta createJvmClassLoadingMetaNode (String groupName, String groupOid, ObjectName groupObjname, MBeanServer 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.

Parameters
groupName Name of the group ("JvmClassLoading")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • An instance of the metadata class generated for the "JvmClassLoading" group (JvmClassLoadingMeta)

protected abstract Object createJvmCompilationMBean (String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)

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.

Parameters
groupName Name of the group ("JvmCompilation")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • 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.

protected JvmCompilationMeta createJvmCompilationMetaNode (String groupName, String groupOid, ObjectName groupObjname, MBeanServer 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.

Parameters
groupName Name of the group ("JvmCompilation")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • An instance of the metadata class generated for the "JvmCompilation" group (JvmCompilationMeta)

protected abstract Object createJvmMemoryMBean (String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)

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.

Parameters
groupName Name of the group ("JvmMemory")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • 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.

protected JvmMemoryMeta createJvmMemoryMetaNode (String groupName, String groupOid, ObjectName groupObjname, MBeanServer 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.

Parameters
groupName Name of the group ("JvmMemory")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • An instance of the metadata class generated for the "JvmMemory" group (JvmMemoryMeta)

protected abstract Object createJvmOSMBean (String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)

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.

Parameters
groupName Name of the group ("JvmOS")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • 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.

protected JvmOSMeta createJvmOSMetaNode (String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)

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.

Parameters
groupName Name of the group ("JvmOS")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • An instance of the metadata class generated for the "JvmOS" group (JvmOSMeta)

protected abstract Object createJvmRuntimeMBean (String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)

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.

Parameters
groupName Name of the group ("JvmRuntime")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • 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.

protected JvmRuntimeMeta createJvmRuntimeMetaNode (String groupName, String groupOid, ObjectName groupObjname, MBeanServer 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.

Parameters
groupName Name of the group ("JvmRuntime")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • An instance of the metadata class generated for the "JvmRuntime" group (JvmRuntimeMeta)

protected abstract Object createJvmThreadingMBean (String groupName, String groupOid, ObjectName groupObjname, MBeanServer server)

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.

Parameters
groupName Name of the group ("JvmThreading")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • 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.

protected JvmThreadingMeta createJvmThreadingMetaNode (String groupName, String groupOid, ObjectName groupObjname, MBeanServer 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.

Parameters
groupName Name of the group ("JvmThreading")
groupOid OID of this group
groupObjname ObjectName for this group (may be null)
server MBeanServer for this group (may be null)
Returns
  • An instance of the metadata class generated for the "JvmThreading" group (JvmThreadingMeta)

protected void initJvmClassLoading (MBeanServer server)

Initialization of the "JvmClassLoading" group. To disable support of this group, redefine the "createJvmClassLoadingMetaNode()" factory method, and make it return "null"

Parameters
server MBeanServer for this group (may be null)
Throws
Exception

protected void initJvmCompilation (MBeanServer server)

Initialization of the "JvmCompilation" group. To disable support of this group, redefine the "createJvmCompilationMetaNode()" factory method, and make it return "null"

Parameters
server MBeanServer for this group (may be null)
Throws
Exception

protected void initJvmMemory (MBeanServer server)

Initialization of the "JvmMemory" group. To disable support of this group, redefine the "createJvmMemoryMetaNode()" factory method, and make it return "null"

Parameters
server MBeanServer for this group (may be null)
Throws
Exception

protected void initJvmOS (MBeanServer server)

Initialization of the "JvmOS" group. To disable support of this group, redefine the "createJvmOSMetaNode()" factory method, and make it return "null"

Parameters
server MBeanServer for this group (may be null)
Throws
Exception

protected void initJvmRuntime (MBeanServer server)

Initialization of the "JvmRuntime" group. To disable support of this group, redefine the "createJvmRuntimeMetaNode()" factory method, and make it return "null"

Parameters
server MBeanServer for this group (may be null)
Throws
Exception

protected void initJvmThreading (MBeanServer server)

Initialization of the "JvmThreading" group. To disable support of this group, redefine the "createJvmThreadingMetaNode()" factory method, and make it return "null"

Parameters
server MBeanServer for this group (may be null)
Throws
Exception