Interface SNMPParameterSetTypeManagementMBean


  • public interface SNMPParameterSetTypeManagementMBean

    The SNMPParameterSetTypeManagementMBean interface provides methods to create and manage statistics parameter set type SNMP mapping configurations in Rhino.

    The "default" SNMPParameterSetTypeManagementMBean instance manages SNMP parameter set types for the global environment. To manage SNMP parameter set types for a specific namespace, use the getSNMPParameterSetTypeManagementMBean(String) method to get the ObjectName of an MBean instance that will do so.

    • Field Detail

      • MBEAN_NAME

        static final String MBEAN_NAME

        The name of this MBean, equal to the string "SNMPParameterSetType".

        See Also:
        Constant Field Values
      • OBJECT_NAME

        static final String OBJECT_NAME

        The JMX Object Name of this MBean.

      • NAMESPACE_KEY

        static final String NAMESPACE_KEY

        The JMX Object Name property key that identifies the namespace that the SNMP Parameter Set Type Management MBean is managing state for. This key is equal to the string "namespace". This key is only present present in the Object Name if the MBean is providing namespace-specific configuration rather than global configuration. The value of this key, if present, is the quoted name of the namespace.

        Since:
        Rhino 2.6.0
        See Also:
        Constant Field Values
    • Method Detail

      • getParameterSetTypeConfigs

        String[] getParameterSetTypeConfigs()
                                     throws ConfigurationException

        Get the names of all parameter set types that have configured SNMP mappings.

        Returns:
        the parameter set type names.
        Throws:
        ConfigurationException - if a configuration error occurs.
      • getAllOIDMappings

        TabularData getAllOIDMappings()
                               throws OpenDataException,
                                      ConfigurationException

        Get all current parameter set type → OID mappings. This method returns mappings for all namespaces.

        The data returned is TabularData with the following items in each CompositeData element:

        Column name JMX type Description

        index

        SimpleType.INTEGER

        The index of the table row. This is a sequence counter that is unique for each row.

        namespace

        SimpleType.STRING

        The namespace that the mapping resides in. A null value for this field indicates a parameter set type in the global environment. An empty string denotes a parameter set type in the default namespace. Any other value indicates a parameter set type in the specified user-defined namespace

        type-name

        SimpleType.STRING

        The name of the parameter set type for which the row is relevant.

        oid

        SimpleType.STRING

        The OID the parameter set type is mapped to.

        in-use

        SimpleType.STRING

        A flag indicating whether the configuration is actively being use.

        Returns:
        tabular data as described above.
        Throws:
        OpenDataException - if an error occurs creating the tabular data.
        ConfigurationException - if a configuration error occurs.
      • getAllCounterMappings

        TabularData getAllCounterMappings()
                                   throws OpenDataException,
                                          ConfigurationException

        Get all current counter mappings.

        The data returned is TabularData with the following items in each CompositeData element:

        Column name JMX type Description

        index

        SimpleType.INTEGER

        The index of the table row. This is a sequence counter that is unique for each row.

        namespace

        SimpleType.STRING

        The namespace that the mapping resides in. A null value for this field indicates a parameter set type in the global environment. An empty string denotes a parameter set type in the default namespace. Any other value indicates a parameter set type in the specified user-defined namespace

        type-name

        SimpleType.STRING

        The name of the parameter set type for which the row is relevant.

        counter-name

        SimpleType.STRING

        The name of the counter for which the row is relevant.

        mapping

        SimpleType.INTEGER

        The last digit of the OID the parameter set type counter is mapped to. This value will be -1 if the counter mapping has been cleared, and 0 if the counter mapping is set to auto-configure.

        Returns:
        tabular data as described above.
        Throws:
        OpenDataException - if an error occurs creating the tabular data.
        ConfigurationException - if a configuration error occurs.