public interface

SnmpMibHandler

com.sun.jmx.snmp.agent.SnmpMibHandler
Known Indirect Subclasses

Class Overview

The logical link between an SNMP MIB and the SNMP communication stack.

This API is a Sun Microsystems internal API and is subject to change without notice.

Summary

Public Methods
abstract SnmpMibHandler addMib(SnmpMibAgent mib, String contextName)
Adds a new contextualized MIB in the SNMP MIB handler.
abstract SnmpMibHandler addMib(SnmpMibAgent mib)
Adds a new MIB in the SNMP MIB handler.
abstract SnmpMibHandler addMib(SnmpMibAgent mib, SnmpOid[] oids)
Adds a new MIB in the SNMP MIB handler.
abstract SnmpMibHandler addMib(SnmpMibAgent mib, String contextName, SnmpOid[] oids)
Adds a new contextualized MIB in the SNMP MIB handler.
abstract boolean removeMib(SnmpMibAgent mib)
Removes the specified MIB from the SNMP protocol adaptor.
abstract boolean removeMib(SnmpMibAgent mib, String contextName)
Removes the specified MIB from the SNMP protocol adaptor.
abstract boolean removeMib(SnmpMibAgent mib, String contextName, SnmpOid[] oids)
Removes the specified MIB from the SNMP protocol adaptor.
abstract boolean removeMib(SnmpMibAgent mib, SnmpOid[] oids)
Removes the specified MIB from the SNMP protocol adaptor.

Public Methods

public abstract SnmpMibHandler addMib (SnmpMibAgent mib, String contextName)

Adds a new contextualized MIB in the SNMP MIB handler.

Parameters
mib The MIB to add.
contextName The MIB context name. If null is passed, will be registered in the default context.
Returns
  • A reference to the SNMP MIB handler.
Throws
IllegalArgumentException If the parameter is null.

public abstract SnmpMibHandler addMib (SnmpMibAgent mib)

Adds a new MIB in the SNMP MIB handler. This method is called automatically by setSnmpAdaptor(SnmpMibHandler) and setSnmpAdaptorName(ObjectName) and should not be called directly.

Parameters
mib The MIB to add.
Returns
  • A reference on the SNMP MIB handler.
Throws
IllegalArgumentException If the parameter is null.

public abstract SnmpMibHandler addMib (SnmpMibAgent mib, SnmpOid[] oids)

Adds a new MIB in the SNMP MIB handler.

Parameters
mib The MIB to add.
oids The array of oid used to add the mib. Each oid is a root oid for the mib.
Returns
  • A reference on the SNMP MIB handler.
Throws
IllegalArgumentException If the parameter is null.

public abstract SnmpMibHandler addMib (SnmpMibAgent mib, String contextName, SnmpOid[] oids)

Adds a new contextualized MIB in the SNMP MIB handler.

Parameters
mib The MIB to add.
contextName The MIB context name. If null is passed, will be registered in the default context.
oids The array of oid used to add the mib. Each oid is a root oid for the mib.
Returns
  • A reference to the SNMP MIB handler.
Throws
IllegalArgumentException If the parameter is null.

public abstract boolean removeMib (SnmpMibAgent mib)

Removes the specified MIB from the SNMP protocol adaptor. This method is called automatically by setSnmpAdaptor(SnmpMibHandler) and setSnmpAdaptorName(ObjectName) and should not be called directly.

Parameters
mib The MIB to be removed.
Returns
  • true if the specified mib was a MIB included in the SNMP MIB handler, false otherwise.

public abstract boolean removeMib (SnmpMibAgent mib, String contextName)

Removes the specified MIB from the SNMP protocol adaptor.

Parameters
mib The MIB to be removed.
contextName The context name used at registration time.
Returns
  • true if the specified mib was a MIB included in the SNMP MIB handler, false otherwise.

public abstract boolean removeMib (SnmpMibAgent mib, String contextName, SnmpOid[] oids)

Removes the specified MIB from the SNMP protocol adaptor.

Parameters
mib The MIB to be removed.
contextName The context name used at registration time.
oids The oid the MIB was previously registered for.
Returns
  • true if the specified mib was a MIB included in the SNMP MIB handler, false otherwise.

public abstract boolean removeMib (SnmpMibAgent mib, SnmpOid[] oids)

Removes the specified MIB from the SNMP protocol adaptor. This method is called automatically by setSnmpAdaptor(SnmpMibHandler) and setSnmpAdaptorName(ObjectName) and should not be called directly.

Parameters
mib The MIB to be removed.
oids The oid the MIB was previously registered for.
Returns
  • true if the specified mib was a MIB included in the SNMP MIB handler, false otherwise.