java.lang.Object | |
↳ | com.sun.jmx.snmp.agent.SnmpMibAgent |
![]() |
![]() |
Abstract class for representing an SNMP agent. The class is used by the SNMP protocol adaptor as the entry point in the SNMP agent to query.
This API is a Sun Microsystems internal API and is subject to change without notice.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mibName | The object name of the MIB. | ||||||||||
server | The reference to the MBean server. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks if a
set operation can be performed. | |||||||||||
Processes a
get operation. | |||||||||||
Indicates whether or not the MIB module is bound to a SNMP protocol
adaptor.
| |||||||||||
Processes a
getBulk operation. | |||||||||||
Gets the reference to the MBean server in which the SNMP MIB is
registered.
| |||||||||||
Gets the MIB name.
| |||||||||||
Processes a
getNext operation. | |||||||||||
Gets the root object identifier of the MIB.
| |||||||||||
Gets the reference to the SNMP protocol adaptor to which the MIB is
bound.
| |||||||||||
Gets the object name of the SNMP protocol adaptor to which the MIB
is bound.
| |||||||||||
Initializes the MIB (with no registration of the MBeans into the
MBean server).
| |||||||||||
This is a factory method for creating new SnmpMibRequest objects.
| |||||||||||
This is a factory method for creating new SnmpMibRequest objects.
| |||||||||||
Not used in this context.
| |||||||||||
Not used in this context.
| |||||||||||
Not used in this context.
| |||||||||||
Initializes the MIB but each single MBean representing the MIB
is inserted into the MBean server.
| |||||||||||
Processes a
set operation. | |||||||||||
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler.
| |||||||||||
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and adds this new MIB in the SNMP MIB handler.
| |||||||||||
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler.
| |||||||||||
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and adds this new MIB in the SNMP MIB handler.
| |||||||||||
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler
associated to the specified
name . | |||||||||||
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler
associated to the specified
name . | |||||||||||
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler
associated to the specified
name . | |||||||||||
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler
associated to the specified
name . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Default constructor.
Checks if a set
operation can be performed.
If the operation can not be performed, the method should throw an
SnmpStatusException
.
This method is called during the first phase of the SET two-phase
commit.
req | The SnmpMibRequest object holding the list of variable to
be set. This list is composed of
SnmpVarBind objects. |
---|
SnmpStatusException | The set operation
cannot be performed.
|
---|
Processes a get
operation.
This method must update the SnmpVarBinds contained in the
SnmpMibRequest
req parameter.
req | The SnmpMibRequest object holding the list of variable to
be retrieved. This list is composed of
SnmpVarBind objects. |
---|
SnmpStatusException | An error occured during the operation. |
---|
Indicates whether or not the MIB module is bound to a SNMP protocol adaptor. As a reminder, only bound MIBs can be accessed through SNMP protocol adaptor.
true
if the MIB module is bound,
false
otherwise.
Processes a getBulk
operation.
This method must update the SnmpVarBinds contained in the
SnmpMibRequest
req parameter.
req | The SnmpMibRequest object holding the list of variable to
be retrieved. This list is composed of
SnmpVarBind objects. |
---|---|
nonRepeat | The number of variables, starting with the first variable in the variable-bindings, for which a single lexicographic successor is requested. |
maxRepeat | The number of lexicographic successors requested
for each of the last R variables. R is the number of variables
following the first nonRepeat variables for which
multiple lexicographic successors are requested. |
SnmpStatusException | An error occured during the operation. |
---|
Gets the reference to the MBean server in which the SNMP MIB is registered.
Processes a getNext
operation.
This method must update the SnmpVarBinds contained in the
SnmpMibRequest
req parameter.
req | The SnmpMibRequest object holding the list of
OIDs from which the next variables should be retrieved.
This list is composed of SnmpVarBind objects. |
---|
SnmpStatusException | An error occured during the operation. |
---|
Gets the root object identifier of the MIB.
The root object identifier is the object identifier uniquely identifying the MIB.
Gets the reference to the SNMP protocol adaptor to which the MIB is bound.
Gets the object name of the SNMP protocol adaptor to which the MIB is bound.
Initializes the MIB (with no registration of the MBeans into the MBean server).
IllegalAccessException | The MIB can not be initialized. |
---|
This is a factory method for creating new SnmpMibRequest objects.
reqPdu | The received PDU. |
---|---|
vblist | The vector of SnmpVarBind objects in which the MIB concerned by this request is involved. |
version | The protocol version of the SNMP request. |
userData | User allocated contextual data. |
This is a factory method for creating new SnmpMibRequest objects.
engine | The local engine. |
---|---|
reqPdu | The received pdu. |
vblist | The vector of SnmpVarBind objects in which the MIB concerned by this request is involved. |
version | The protocol version of the SNMP request. |
userData | User allocated contextual data. |
Not used in this context.
Not used in this context.
registrationDone | Indicates whether or not the MBean has been successfully registered in the MBean server. The value false means that the registration phase has failed. |
---|
Initializes the MIB but each single MBean representing the MIB is inserted into the MBean server.
server | The MBean server to register the service with. |
---|---|
name | The object name. |
Exception |
---|
Processes a set
operation.
This method must update the SnmpVarBinds contained in the
SnmpMibRequest
req parameter.
This method is called during the second phase of the SET two-phase
commit.
req | The SnmpMibRequest object holding the list of variable to
be set. This list is composed of
SnmpVarBind objects. |
---|
SnmpStatusException | An error occured during the operation.
Throwing an exception in this method will break the
atomicity of the SET operation. Care must be taken so that
the exception is thrown in the check(SnmpMibRequest)
method instead.
|
---|
Sets the reference to the SNMP protocol adaptor through which the MIB will be SNMP accessible and add this new MIB in the SNMP MIB handler. This method is to be called to set a specific agent to a specific OID. This can be useful when dealing with MIB overlapping. Some OID can be implemented in more than one MIB. In this case, the OID nearest the agent will be used on SNMP operations.
stack | The SNMP MIB handler. |
---|---|
oids | The set of OIDs this agent implements. |
Sets the reference to the SNMP protocol adaptor through which the MIB will be SNMP accessible and adds this new MIB in the SNMP MIB handler. Adds a new contextualized MIB in the SNMP MIB handler.
stack | The SNMP MIB handler. |
---|---|
contextName | The MIB context name. If null is passed, will be registered in the default context. |
IllegalArgumentException | If the parameter is null. |
---|
Sets the reference to the SNMP protocol adaptor through which the MIB will be SNMP accessible and add this new MIB in the SNMP MIB handler.
stack | The SNMP MIB handler. |
---|
Sets the reference to the SNMP protocol adaptor through which the MIB will be SNMP accessible and adds this new MIB in the SNMP MIB handler. Adds a new contextualized MIB in the SNMP MIB handler.
stack | The SNMP MIB handler. |
---|---|
contextName | The MIB context name. If null is passed, will be registered in the default context. |
oids | The set of OIDs this agent implements. |
IllegalArgumentException | If the parameter is null. |
---|
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler
associated to the specified name
.
name | The name of the SNMP protocol adaptor. |
---|---|
contextName | The MIB context name. If null is passed, will be registered in the default context. |
oids | The set of OIDs this agent implements. |
InstanceNotFoundException | The SNMP protocol adaptor does not exist in the MBean server. |
---|---|
ServiceNotFoundException | This SNMP MIB is not registered in the MBean server or the requested service is not supported. |
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler
associated to the specified name
.
name | The name of the SNMP protocol adaptor. |
---|---|
contextName | The MIB context name. If null is passed, will be registered in the default context. |
InstanceNotFoundException | The SNMP protocol adaptor does not exist in the MBean server. |
---|---|
ServiceNotFoundException | This SNMP MIB is not registered in the MBean server or the requested service is not supported. |
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler
associated to the specified name
.
name | The name of the SNMP protocol adaptor. |
---|
InstanceNotFoundException | The SNMP protocol adaptor does not exist in the MBean server. |
---|---|
ServiceNotFoundException | This SNMP MIB is not registered in the MBean server or the requested service is not supported. |
Sets the reference to the SNMP protocol adaptor through which the MIB
will be SNMP accessible and add this new MIB in the SNMP MIB handler
associated to the specified name
.
This method is to be called to set a specific agent to a specific OID. This can be useful when dealing with MIB overlapping.
Some OID can be implemented in more than one MIB. In this case, the OID nearer agent will be used on SNMP operations.
name | The name of the SNMP protocol adaptor. |
---|---|
oids | The set of OIDs this agent implements. |
InstanceNotFoundException | The SNMP protocol adaptor does not exist in the MBean server. |
---|---|
ServiceNotFoundException | This SNMP MIB is not registered in the MBean server or the requested service is not supported. |