Class DsMIBMeta

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

    public class DsMIBMeta
    extends com.sun.management.snmp.agent.SnmpMibGroup
    implements Serializable, com.sun.management.snmp.agent.SnmpStandardMetaServer
    The class is used for representing SNMP metadata for the "DsMIB" group. The group is defined with the following oid: 1.3.6.1.2.1.66.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DsMIBMeta​(com.sun.management.snmp.agent.SnmpMib myMib, com.sun.management.snmp.agent.SnmpStandardObjectServer objserv)
      Constructor for the metadata associated to "DsMIB".
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void check​(com.sun.management.snmp.agent.SnmpMibSubRequest req, int depth)  
      void check​(com.sun.management.snmp.SnmpValue x, long var, Object data)
      Check the value of a scalar variable
      protected DsApplIfOpsTableMeta createDsApplIfOpsTableMetaNode​(String tableName, String groupName, com.sun.management.snmp.agent.SnmpMib mib, MBeanServer server)
      Factory method for "DsApplIfOpsTable" table metadata class.
      protected DsIntTableMeta createDsIntTableMetaNode​(String tableName, String groupName, com.sun.management.snmp.agent.SnmpMib mib, MBeanServer server)
      Factory method for "DsIntTable" table metadata class.
      protected DsTableMeta createDsTableMetaNode​(String tableName, String groupName, com.sun.management.snmp.agent.SnmpMib mib, MBeanServer server)
      Factory method for "DsTable" table metadata class.
      com.sun.management.snmp.SnmpValue get​(long var, Object data)
      Get the value of a scalar variable
      void get​(com.sun.management.snmp.agent.SnmpMibSubRequest req, int depth)  
      String getAttributeName​(long id)
      Return the name of the attribute corresponding to the SNMP variable identified by "id".
      com.sun.management.snmp.agent.SnmpMibTable getTable​(long arc)
      Returns the table object identified by "arc".
      boolean isReadable​(long arc)
      Returns true if "arc" identifies a readable scalar object.
      boolean isTable​(long arc)
      Returns true if "arc" identifies a table object.
      boolean isVariable​(long arc)
      Returns true if "arc" identifies a scalar object.
      void registerTableNodes​(com.sun.management.snmp.agent.SnmpMib mib, MBeanServer server)
      Register the group's SnmpMibTable objects with the meta-data.
      void set​(com.sun.management.snmp.agent.SnmpMibSubRequest req, int depth)  
      com.sun.management.snmp.SnmpValue set​(com.sun.management.snmp.SnmpValue x, long var, Object data)
      Set the value of a scalar variable
      protected void setInstance​(DsMIBMBean var)
      Allow to bind the metadata description to a specific object.
      boolean skipVariable​(long var, Object data, int pduVersion)  
      • Methods inherited from class com.sun.management.snmp.agent.SnmpMibGroup

        getRootOid, isNestedArc, registerObject, validateVarId
      • Methods inherited from class com.sun.management.snmp.agent.SnmpMibOid

        registerNode
      • Methods inherited from class com.sun.management.snmp.agent.SnmpMibNode

        getNextIdentifier, getNextVarId, getNextVarId, sort
    • Field Detail

      • objectserver

        protected com.sun.management.snmp.agent.SnmpStandardObjectServer objectserver
    • Constructor Detail

      • DsMIBMeta

        public DsMIBMeta​(com.sun.management.snmp.agent.SnmpMib myMib,
                         com.sun.management.snmp.agent.SnmpStandardObjectServer objserv)
        Constructor for the metadata associated to "DsMIB".
    • Method Detail

      • get

        public com.sun.management.snmp.SnmpValue get​(long var,
                                                     Object data)
                                              throws com.sun.management.snmp.SnmpStatusException
        Get the value of a scalar variable
        Specified by:
        get in interface com.sun.management.snmp.agent.SnmpStandardMetaServer
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • set

        public com.sun.management.snmp.SnmpValue set​(com.sun.management.snmp.SnmpValue x,
                                                     long var,
                                                     Object data)
                                              throws com.sun.management.snmp.SnmpStatusException
        Set the value of a scalar variable
        Specified by:
        set in interface com.sun.management.snmp.agent.SnmpStandardMetaServer
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • check

        public void check​(com.sun.management.snmp.SnmpValue x,
                          long var,
                          Object data)
                   throws com.sun.management.snmp.SnmpStatusException
        Check the value of a scalar variable
        Specified by:
        check in interface com.sun.management.snmp.agent.SnmpStandardMetaServer
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • setInstance

        protected void setInstance​(DsMIBMBean var)
        Allow to bind the metadata description to a specific object.
      • get

        public void get​(com.sun.management.snmp.agent.SnmpMibSubRequest req,
                        int depth)
                 throws com.sun.management.snmp.SnmpStatusException
        Specified by:
        get in class com.sun.management.snmp.agent.SnmpMibGroup
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • set

        public void set​(com.sun.management.snmp.agent.SnmpMibSubRequest req,
                        int depth)
                 throws com.sun.management.snmp.SnmpStatusException
        Specified by:
        set in class com.sun.management.snmp.agent.SnmpMibGroup
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • check

        public void check​(com.sun.management.snmp.agent.SnmpMibSubRequest req,
                          int depth)
                   throws com.sun.management.snmp.SnmpStatusException
        Specified by:
        check in class com.sun.management.snmp.agent.SnmpMibGroup
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • isVariable

        public boolean isVariable​(long arc)
        Returns true if "arc" identifies a scalar object.
        Specified by:
        isVariable in class com.sun.management.snmp.agent.SnmpMibGroup
      • isReadable

        public boolean isReadable​(long arc)
        Returns true if "arc" identifies a readable scalar object.
        Specified by:
        isReadable in class com.sun.management.snmp.agent.SnmpMibGroup
      • skipVariable

        public boolean skipVariable​(long var,
                                    Object data,
                                    int pduVersion)
        Overrides:
        skipVariable in class com.sun.management.snmp.agent.SnmpMibNode
      • getAttributeName

        public String getAttributeName​(long id)
                                throws com.sun.management.snmp.SnmpStatusException
        Return the name of the attribute corresponding to the SNMP variable identified by "id".
        Throws:
        com.sun.management.snmp.SnmpStatusException
      • isTable

        public boolean isTable​(long arc)
        Returns true if "arc" identifies a table object.
        Specified by:
        isTable in class com.sun.management.snmp.agent.SnmpMibGroup
      • getTable

        public com.sun.management.snmp.agent.SnmpMibTable getTable​(long arc)
        Returns the table object identified by "arc".
        Specified by:
        getTable in class com.sun.management.snmp.agent.SnmpMibGroup
      • registerTableNodes

        public void registerTableNodes​(com.sun.management.snmp.agent.SnmpMib mib,
                                       MBeanServer server)
        Register the group's SnmpMibTable objects with the meta-data.
      • createDsIntTableMetaNode

        protected DsIntTableMeta createDsIntTableMetaNode​(String tableName,
                                                          String groupName,
                                                          com.sun.management.snmp.agent.SnmpMib mib,
                                                          MBeanServer server)
        Factory method for "DsIntTable" table metadata class. You can redefine this method if you need to replace the default generated metadata class with your own customized class.
        Parameters:
        tableName - Name of the table object ("DsIntTable")
        groupName - Name of the group to which this table belong ("DsMIB")
        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 "DsIntTable" table (DsIntTableMeta)
      • createDsApplIfOpsTableMetaNode

        protected DsApplIfOpsTableMeta createDsApplIfOpsTableMetaNode​(String tableName,
                                                                      String groupName,
                                                                      com.sun.management.snmp.agent.SnmpMib mib,
                                                                      MBeanServer server)
        Factory method for "DsApplIfOpsTable" table metadata class. You can redefine this method if you need to replace the default generated metadata class with your own customized class.
        Parameters:
        tableName - Name of the table object ("DsApplIfOpsTable")
        groupName - Name of the group to which this table belong ("DsMIB")
        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 "DsApplIfOpsTable" table (DsApplIfOpsTableMeta)
      • createDsTableMetaNode

        protected DsTableMeta createDsTableMetaNode​(String tableName,
                                                    String groupName,
                                                    com.sun.management.snmp.agent.SnmpMib mib,
                                                    MBeanServer server)
        Factory method for "DsTable" table metadata class. You can redefine this method if you need to replace the default generated metadata class with your own customized class.
        Parameters:
        tableName - Name of the table object ("DsTable")
        groupName - Name of the group to which this table belong ("DsMIB")
        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 "DsTable" table (DsTableMeta)