Class TableDsIntTable

  • All Implemented Interfaces:
    com.sun.management.snmp.agent.SnmpTableCallbackHandler, com.sun.management.snmp.agent.SnmpTableEntryFactory, Serializable

    public class TableDsIntTable
    extends com.sun.management.snmp.agent.SnmpTableSupport
    implements Serializable
    The class is used for implementing the "DsIntTable" group. The group is defined with the following oid: 1.3.6.1.2.1.66.3.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected MBeanServer server
      Reference to the MBean server.
      • Fields inherited from class com.sun.management.snmp.agent.SnmpTableSupport

        entries, meta, theMib
    • Constructor Summary

      Constructors 
      Constructor Description
      TableDsIntTable​(com.sun.management.snmp.agent.SnmpMib myMib)
      Constructor for the table.
      TableDsIntTable​(com.sun.management.snmp.agent.SnmpMib myMib, MBeanServer server)
      Constructor for the table.
    • Field Detail

      • server

        protected MBeanServer server
        Reference to the MBean server.
    • Constructor Detail

      • TableDsIntTable

        public TableDsIntTable​(com.sun.management.snmp.agent.SnmpMib myMib)
        Constructor for the table. Initialize metadata for "TableDsIntTable". The reference on the MBean server is not updated so the entries created through an SNMP SET will not be registered in Java DMK.
      • TableDsIntTable

        public TableDsIntTable​(com.sun.management.snmp.agent.SnmpMib myMib,
                               MBeanServer server)
        Constructor for the table. Initialize metadata for "TableDsIntTable". The reference on the MBean server is updated so the entries created through an SNMP SET will be AUTOMATICALLY REGISTERED in Java DMK.
    • Method Detail

      • createNewEntry

        public void createNewEntry​(com.sun.management.snmp.agent.SnmpMibSubRequest req,
                                   com.sun.management.snmp.SnmpOid rowOid,
                                   int depth,
                                   com.sun.management.snmp.agent.SnmpMibTable meta)
                            throws com.sun.management.snmp.SnmpStatusException
        Specified by:
        createNewEntry in interface com.sun.management.snmp.agent.SnmpTableEntryFactory
        Specified by:
        createNewEntry in class com.sun.management.snmp.agent.SnmpTableSupport
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • getRegisteredTableMeta

        protected com.sun.management.snmp.agent.SnmpMibTable getRegisteredTableMeta​(com.sun.management.snmp.agent.SnmpMib mib)
        Specified by:
        getRegisteredTableMeta in class com.sun.management.snmp.agent.SnmpTableSupport
      • removeEntryCb

        public void removeEntryCb​(int pos,
                                  com.sun.management.snmp.SnmpOid row,
                                  ObjectName name,
                                  Object entry,
                                  com.sun.management.snmp.agent.SnmpMibTable meta)
                           throws com.sun.management.snmp.SnmpStatusException
        Specified by:
        removeEntryCb in interface com.sun.management.snmp.agent.SnmpTableCallbackHandler
        Overrides:
        removeEntryCb in class com.sun.management.snmp.agent.SnmpTableSupport
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • addEntry

        public void addEntry​(DsIntEntryMBean entry)
                      throws com.sun.management.snmp.SnmpStatusException
        Add a new entry to the table. If the associated metadata requires ObjectNames a new ObjectName will be generated using "buildNameFromIndex". This method calls "addEntry" from "SnmpTableSupport". See the "SnmpTableSupport" Javadoc API for more details.
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • addEntry

        public void addEntry​(DsIntEntryMBean entry,
                             ObjectName name)
                      throws com.sun.management.snmp.SnmpStatusException
        Add a new entry to the table. This method calls "addEntry" from "SnmpTableSupport". See the "SnmpTableSupport" Javadoc API for more details.
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • getEntries

        public DsIntEntryMBean[] getEntries()
        Return the entries stored in the table. This method calls "getBasicEntries" from "SnmpTableSupport". See the "SnmpTableSupport" Javadoc API for more details.
      • removeEntry

        public void removeEntry​(DsIntEntryMBean entry)
                         throws com.sun.management.snmp.SnmpStatusException
        Remove the specified entry from the table. This method calls "removeEntry" from "SnmpTableSupport". See the "SnmpTableSupport" Javadoc API for more details.
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • buildNameFromIndex

        public ObjectName buildNameFromIndex​(com.sun.management.snmp.agent.SnmpIndex index)
                                      throws com.sun.management.snmp.SnmpStatusException
        Specified by:
        buildNameFromIndex in class com.sun.management.snmp.agent.SnmpTableSupport
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • buildSnmpIndex

        public com.sun.management.snmp.agent.SnmpIndex buildSnmpIndex​(DsIntEntryMBean entry)
                                                               throws com.sun.management.snmp.SnmpStatusException
        Build index for "DsIntEntry".
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • buildOidFromIndex

        public com.sun.management.snmp.SnmpOid buildOidFromIndex​(com.sun.management.snmp.agent.SnmpIndex index)
                                                          throws com.sun.management.snmp.SnmpStatusException
        Build index for "DsIntEntry".
        Specified by:
        buildOidFromIndex in class com.sun.management.snmp.agent.SnmpTableSupport
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • buildOidFromIndexVal

        public com.sun.management.snmp.SnmpOid buildOidFromIndexVal​(Integer aApplIndex,
                                                                    Integer aDsIntEntIndex,
                                                                    Integer aDsApplIfProtocolIndex)
                                                             throws com.sun.management.snmp.SnmpStatusException
        Build index for "DsIntEntry".
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • buildSnmpIndex

        public com.sun.management.snmp.agent.SnmpIndex buildSnmpIndex​(long[] index,
                                                                      int start)
                                                               throws com.sun.management.snmp.SnmpStatusException
        Build index for "DsIntEntry".
        Specified by:
        buildSnmpIndex in class com.sun.management.snmp.agent.SnmpTableSupport
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • createDsIntEntryMBean

        public Object createDsIntEntryMBean​(com.sun.management.snmp.agent.SnmpMibSubRequest req,
                                            com.sun.management.snmp.SnmpOid rowOid,
                                            int depth,
                                            ObjectName entryObjName,
                                            com.sun.management.snmp.agent.SnmpMibTable meta,
                                            Integer aApplIndex,
                                            Integer aDsIntEntIndex,
                                            Integer aDsApplIfProtocolIndex)
                                     throws com.sun.management.snmp.SnmpStatusException
        Factory method for "DsIntEntry" entry MBean class. You can redefine this method if you need to replace the default generated MBean class with your own customized class.
        Returns:
        An instance of the MBean class generated for the "DsIntEntry" conceptual row. Note that when using standard metadata, the returned object must implement the "DsIntEntryMBean" interface.
        Throws:
        com.sun.management.snmp.SnmpStatusException