java.lang.Object | |
↳ | com.sun.jmx.snmp.agent.SnmpMibNode |
Known Direct Subclasses |
The SnmpMibNode
class represents a node in an SNMP MIB.
This class is used internally and by the class generated by
mibgen
.
You should not need to use this class directly.
This API is a Sun Microsystems internal API and is subject to change without notice.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
noSuchInstanceException | Contains a predefined exception that is often fired when an object is not found in the MIB. | ||||||||||
noSuchNameException | |||||||||||
noSuchObjectException | |||||||||||
varList | Contains the list of variable identifiers. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Generic handling of the
check operation. | |||||||||||
Generic handling of the
get operation. | |||||||||||
Get the next OID arc corresponding to a readable scalar variable,
a branch leading to a subgroub, or a table, possibly skipping over
those arcs that must not or cannot be returned.
| |||||||||||
Get the next OID arc corresponding to a readable scalar variable,
a branch leading to a subgroub, or a table.
| |||||||||||
Computes the root OID of the MIB.
| |||||||||||
Generic handling of the
set operation. | |||||||||||
Sorts the specified integer array.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This will give the first element greater than
value
in a sorted array. | |||||||||||
Hook for subclasses.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Contains a predefined exception that is often fired when an object is not found in the MIB.
Contains the list of variable identifiers.
Generic handling of the check
operation.
You can override this method if you need to implement some specific policies for minimizing the accesses made to some remote underlying resources, or if you need to implement some consistency checks between the different values provided in the varbind list.
req | The sub-request that must be handled by this node. |
---|---|
depth | The depth reached in the OID tree. |
SnmpStatusException | An error occurred while accessing the MIB node. |
---|
Generic handling of the get
operation.
You can override this method if you need to implement some specific policies for minimizing the accesses made to some remote underlying resources.
req | The sub-request that must be handled by this node. |
---|---|
depth | The depth reached in the OID tree. |
SnmpStatusException | An error occurred while accessing the MIB node. |
---|
Get the next OID arc corresponding to a readable scalar variable,
a branch leading to a subgroub, or a table, possibly skipping over
those arcs that must not or cannot be returned.
Calls getNextVarId(long, java.lang.Object)
until
skipVariable(long, java.lang.Object, int)
returns false.
id | Id we start from looking for the next. |
---|---|
userData | A contextual object containing user-data.
This object is allocated through the
for each incoming SNMP request. |
pduVersion | Protocol version of the original request PDU. |
SnmpStatusException | If no id is found after the given id. |
---|
Get the next OID arc corresponding to a readable scalar variable, a branch leading to a subgroub, or a table.
id | Id we start from looking for the next. |
---|---|
userData | A contextual object containing user-data.
This object is allocated through the
for each incoming SNMP request. |
SnmpStatusException | If no id is found after the given id. |
---|
Generic handling of the set
operation.
You can override this method if you need to implement some specific policies for minimizing the accesses made to some remote underlying resources.
req | The sub-request that must be handled by this node. |
---|---|
depth | The depth reached in the OID tree. |
SnmpStatusException | An error occurred while accessing the MIB node. |
---|
Sorts the specified integer array.
array | An integer array. |
---|
This will give the first element greater than value
in a sorted array.
If there is no element of the array greater than value
,
the method will throw a SnmpStatusException
.
table | A sorted integer array. |
---|---|
value | The greatest value. |
SnmpStatusException | If there is no element greater than
value .
|
---|
Hook for subclasses. The default implementation of this method is to always return false. Subclasses should redefine this method so that it returns true when:
id | Id we start from looking for the next. |
---|---|
userData | A contextual object containing user-data.
This object is allocated through the
for each incoming SNMP request. |
pduVersion | Protocol version of the original request PDU. |