public class

JvmRTBootClassPathTableMeta

extends SnmpMibTable
implements Serializable
java.lang.Object
   ↳ com.sun.jmx.snmp.agent.SnmpMibNode
     ↳ com.sun.jmx.snmp.agent.SnmpMibTable
       ↳ sun.management.snmp.jvmmib.JvmRTBootClassPathTableMeta
Known Direct Subclasses

Class Overview

The class is used for implementing the "JvmRTBootClassPathTable" group. The group is defined with the following oid: 1.3.6.1.4.1.42.2.145.3.163.1.1.4.21.

Summary

Fields
protected SnmpStandardObjectServer objectserver Reference to the object server.
[Expand]
Inherited Fields
From class com.sun.jmx.snmp.agent.SnmpMibTable
From class com.sun.jmx.snmp.agent.SnmpMibNode
Public Constructors
JvmRTBootClassPathTableMeta(SnmpMib myMib, SnmpStandardObjectServer objserv)
Constructor for the table.
Public Methods
synchronized void addEntry(SnmpOid rowOid, ObjectName objname, Object entry)
Add a new entry in this SnmpMibTable.
void check(SnmpMibSubRequest req, SnmpOid rowOid, int depth)
This method is used internally and is implemented by the SnmpMibTable subclasses generated by mibgen.
void createNewEntry(SnmpMibSubRequest req, SnmpOid rowOid, int depth)
This method is invoked when the creation of a new entry is requested by a remote SNMP manager.
void get(SnmpMibSubRequest req, SnmpOid rowOid, int depth)
This method is used internally and is implemented by the SnmpMibTable subclasses generated by mibgen.
long getNextVarEntryId(SnmpOid rowOid, long var, Object data)
Returns the arc of the next columnar object following "var".
boolean isReadableEntryId(SnmpOid rowOid, long var, Object data)
Returns true if "var" identifies a readable scalar object.
boolean isRegistrationRequired()
Tell whether the specific version of this metadata generated by mibgen requires entries to be registered with the MBeanServer.
void registerEntryNode(SnmpMib mib, MBeanServer server)
void set(SnmpMibSubRequest req, SnmpOid rowOid, int depth)
This method is used internally and is implemented by the SnmpMibTable subclasses generated by mibgen.
boolean skipEntryVariable(SnmpOid rowOid, long var, Object data, int pduVersion)
Hook for subclasses.
void validateVarEntryId(SnmpOid rowOid, long var, Object data)
check that the given "var" identifies a columnar object.
Protected Methods
JvmRTBootClassPathEntryMeta createJvmRTBootClassPathEntryMetaNode(String snmpEntryName, String tableName, SnmpMib mib, MBeanServer server)
Factory method for "JvmRTBootClassPathEntry" entry metadata class.
[Expand]
Inherited Methods
From class com.sun.jmx.snmp.agent.SnmpMibTable
From class com.sun.jmx.snmp.agent.SnmpMibNode
From class java.lang.Object
From interface javax.management.NotificationBroadcaster

Fields

protected SnmpStandardObjectServer objectserver

Reference to the object server.

Public Constructors

public JvmRTBootClassPathTableMeta (SnmpMib myMib, SnmpStandardObjectServer objserv)

Constructor for the table. Initialize metadata for "JvmRTBootClassPathTableMeta". The reference on the MBean server is updated so the entries created through an SNMP SET will be AUTOMATICALLY REGISTERED in Java DMK.

Public Methods

public synchronized void addEntry (SnmpOid rowOid, ObjectName objname, Object entry)

Add a new entry in this SnmpMibTable. Also triggers the addEntryCB() callback of the SnmpTableEntryFactory interface if this node is bound to a factory.

Parameters
rowOid The SnmpOid identifying the table row to be added.
objname The ObjectName with which this entry is registered. This parameter can be omitted if isRegistrationRequired() return false.
entry The entry to add.

public void check (SnmpMibSubRequest req, SnmpOid rowOid, int depth)

This method is used internally and is implemented by the SnmpMibTable subclasses generated by mibgen.

public void createNewEntry (SnmpMibSubRequest req, SnmpOid rowOid, int depth)

This method is invoked when the creation of a new entry is requested by a remote SNMP manager.
By default, remote entry creation is disabled - and this method will not be called. You can dynamically switch the entry creation policy by calling setCreationEnabled(true) and setCreationEnabled(false) on this object.

This method is called internally by the SNMP runtime and you should never need to call it directly. However you might want to extend it in order to implement your own specific application behaviour, should the default behaviour not be at your convenience.

Parameters
req The SNMP subrequest requesting this creation
rowOid The OID indexing the conceptual row (entry) for which the creation was requested.
depth The position of the columnar object arc in the OIDs from the varbind list.

public void get (SnmpMibSubRequest req, SnmpOid rowOid, int depth)

This method is used internally and is implemented by the SnmpMibTable subclasses generated by mibgen.

public long getNextVarEntryId (SnmpOid rowOid, long var, Object data)

Returns the arc of the next columnar object following "var".

Parameters
rowOid The OID index of the row involved in the operation.
var Id of the variable we start from, looking for the next.
data A contextual object containing user-data. This object is allocated through the SnmpUserDataFactory for each incoming SNMP request.
Returns
  • The next columnar object id.

public boolean isReadableEntryId (SnmpOid rowOid, long var, Object data)

Returns true if "var" identifies a readable scalar object.

Parameters
rowOid The OID index of the row involved in the operation.
var The OID arc.
data A contextual object containing user-data. This object is allocated through the SnmpUserDataFactory for each incoming SNMP request.

public boolean isRegistrationRequired ()

Tell whether the specific version of this metadata generated by mibgen requires entries to be registered with the MBeanServer. In this case an ObjectName will have to be passed to addEntry() in order for the table to behave correctly (case of the generic metadata).

If that version of the metadata does not require entry to be registered, then passing an ObjectName becomes optional (null can be passed instead).

Returns
  • true if registration is required by this version of the metadata.

public void registerEntryNode (SnmpMib mib, MBeanServer server)

public void set (SnmpMibSubRequest req, SnmpOid rowOid, int depth)

This method is used internally and is implemented by the SnmpMibTable subclasses generated by mibgen.

public boolean skipEntryVariable (SnmpOid rowOid, long var, Object data, int pduVersion)

Hook for subclasses. The default implementation of this method is to always return false. Subclasses should redefine this method so that it returns true when:

  • the variable is a leaf that is not instantiated,
  • or the variable is a leaf whose type cannot be returned by that version of the protocol (e.g. an Counter64 with SNMPv1).

Parameters
rowOid The OID index of the row involved in the operation.
var Id of the variable we start from, looking for the next.
data A contextual object containing user-data. This object is allocated through the SnmpUserDataFactory for each incoming SNMP request.
pduVersion Protocol version of the original request PDU.
Returns
  • true if the variable must be skipped by the get-next algorithm.

public void validateVarEntryId (SnmpOid rowOid, long var, Object data)

check that the given "var" identifies a columnar object.

Parameters
rowOid The OID index of the row involved in the operation.
var The var we want to validate.
data A contextual object containing user-data. This object is allocated through the SnmpUserDataFactory for each incoming SNMP request.

Protected Methods

protected JvmRTBootClassPathEntryMeta createJvmRTBootClassPathEntryMetaNode (String snmpEntryName, String tableName, SnmpMib mib, MBeanServer server)

Factory method for "JvmRTBootClassPathEntry" entry metadata class. You can redefine this method if you need to replace the default generated metadata class with your own customized class.

Parameters
snmpEntryName Name of the SNMP Entry object (conceptual row) ("JvmRTBootClassPathEntry")
tableName Name of the table in which the entries are registered ("JvmRTBootClassPathTable")
mib The SnmpMib object in which this table is registered
server MBeanServer for this table entries (may be null)
Returns
  • An instance of the metadata class generated for the "JvmRTBootClassPathEntry" conceptual row (JvmRTBootClassPathEntryMeta)