| java.lang.Object | ||
| ↳ | com.sun.jmx.snmp.agent.SnmpMibAgent | |
| ↳ | com.sun.jmx.snmp.agent.SnmpErrorHandlerAgent | |
A simple MIB agent that implements SNMP calls (get, set, getnext and getbulk) in a way that only errors or exceptions are returned. Every call done on this agent fails. Error handling is done according to the manager's SNMP protocol version.
It is used by SnmpAdaptorServer for its default agent behavior. When a received Oid doesn't match, this agent is called to fill the result list with errors.
This API is a Sun Microsystems internal API and is subject to change without notice.
| 
  [Expand]
   Inherited Fields  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   From class
com.sun.jmx.snmp.agent.SnmpMibAgent
 | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Checks if a  
  
  set operation can be performed. | |||||||||||
Processes a  
  
  get operation. | |||||||||||
Processes a  
  
  getBulk operation. | |||||||||||
Processes a  
  
  getNext operation. | |||||||||||
Gets the root object identifier of the MIB. 
  
   | |||||||||||
Initializes the MIB (with no registration of the MBeans into the
 MBean server). 
  
   | |||||||||||
Initializes the MIB but each single MBean representing the MIB
 is inserted into the MBean server. 
  
   | |||||||||||
Processes a  
  
  set operation. | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  com.sun.jmx.snmp.agent.SnmpMibAgent
 | |||||||||||
   
From class
  java.lang.Object
 | |||||||||||
   
From interface
  com.sun.jmx.snmp.agent.SnmpMibAgentMBean
 | |||||||||||
   
From interface
  javax.management.MBeanRegistration
 | |||||||||||
Checks if a set operation can be performed.
 If the operation can not be performed, the method should emit a
 SnmpStatusException.
| inRequest | The SnmpMibRequest object holding the list of variables to
            be set. This list is composed of
            SnmpVarBind objects. | 
        
|---|
| SnmpStatusException | The set operation
    cannot be performed.
 | 
        
|---|
Processes a get operation. It will throw an exception for V1 requests or it will set exceptions within the list for V2 requests.
| inRequest | The SnmpMibRequest object holding the list of variable to be retrieved. | 
|---|
| SnmpStatusException | An error occured during the operation. | 
|---|
Processes a getBulk operation. It will throw an exception if the request is a V1 one or it will set exceptions within the list for V2 ones.
| inRequest | The SnmpMibRequest object holding the list of variable to be retrieved. | 
|---|---|
| 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. | 
|---|
Processes a getNext operation. It will throw an exception for V1 requests or it will set exceptions within the list for V2 requests..
| inRequest | The SnmpMibRequest object holding the list of variables to be retrieved. | 
|---|
| 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.
Initializes the MIB (with no registration of the MBeans into the MBean server). Does nothing.
| IllegalAccessException | The MIB cannot be initialized. | 
|---|
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. Should never be called (check previously called having failed).
| inRequest | The SnmpMibRequest object holding the list of variable to be set. | 
|---|
| SnmpStatusException | An error occured during the operation. | 
|---|