|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jdmk.snmp.agent.SnmpMibAgent
com.sun.jdmk.snmp.agent.SnmpErrorHandlerAgent
com.sun.management.snmp.agent in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
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.
| Field Summary |
| Fields inherited from class com.sun.jdmk.snmp.agent.SnmpMibAgent |
mibName, server |
| Constructor Summary | |
SnmpErrorHandlerAgent()
Deprecated. |
|
| Method Summary | |
void |
check(SnmpMibRequest inRequest)
Deprecated. Checks if a set operation can be performed. |
void |
get(SnmpMibRequest inRequest)
Deprecated. Processes a get operation. |
void |
getBulk(SnmpMibRequest inRequest,
int nonRepeat,
int maxRepeat)
Deprecated. Processes a getBulk operation. |
void |
getNext(SnmpMibRequest inRequest)
Deprecated. Processes a getNext operation. |
long[] |
getRootOid()
Deprecated. Gets the root object identifier of the MIB. |
void |
init()
Deprecated. Initializes the MIB (with no registration of the MBeans into the MBean server). |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Deprecated. Initializes the MIB but each single MBean representing the MIB is inserted into the MBean server. |
void |
set(SnmpMibRequest inRequest)
Deprecated. Processes a set operation. |
| Methods inherited from class com.sun.jdmk.snmp.agent.SnmpMibAgent |
getBindingState, getMBeanServer, getMibName, getSnmpAdaptor, getSnmpAdaptorName, newMibRequest, newMibRequest, newMibRequest, postDeregister, postRegister, preDeregister, setSnmpAdaptor, setSnmpAdaptor, setSnmpAdaptor, setSnmpAdaptor, setSnmpAdaptorName, setSnmpAdaptorName, setSnmpAdaptorName, setSnmpAdaptorName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SnmpErrorHandlerAgent()
| Method Detail |
public void init()
throws IllegalAccessException
init in class SnmpMibAgentIllegalAccessException - The MIB cannot be initialized.
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
preRegister in interface MBeanRegistrationpreRegister in class SnmpMibAgentserver - The MBean server to register the service with.name - The object name.
Exceptionpublic long[] getRootOid()
The root object identifier is the object identifier uniquely identifying the MIB.
getRootOid in class SnmpMibAgent
public void get(SnmpMibRequest inRequest)
throws SnmpStatusException
get operation. It will throw an exception
for V1 requests or it will set exceptions within the list for
V2 requests.
get in interface SnmpMibAgentMBeanget in class SnmpMibAgentinRequest - The SnmpMibRequest object holding the list of
variable to be retrieved.
SnmpStatusException - An error occurred during the operation.
public void check(SnmpMibRequest inRequest)
throws SnmpStatusException
set operation can be performed.
If the operation can not be performed, the method should emit a
SnmpStatusException.
check in interface SnmpMibAgentMBeancheck in class SnmpMibAgentinRequest - 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.
public void set(SnmpMibRequest inRequest)
throws SnmpStatusException
set operation. Should never be called
(check previously called having failed).
set in interface SnmpMibAgentMBeanset in class SnmpMibAgentinRequest - The SnmpMibRequest object holding the list of
variable to be set.
SnmpStatusException - An error occurred during the operation.
public void getNext(SnmpMibRequest inRequest)
throws SnmpStatusException
getNext operation. It will throw an
exception for V1 requests or it will set exceptions within the
list for V2 requests..
getNext in interface SnmpMibAgentMBeangetNext in class SnmpMibAgentinRequest - The SnmpMibRequest object holding the list of
variables to be retrieved.
SnmpStatusException - An error occurred during the operation.
public void getBulk(SnmpMibRequest inRequest,
int nonRepeat,
int maxRepeat)
throws SnmpStatusException
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.
getBulk in interface SnmpMibAgentMBeangetBulk in class SnmpMibAgentinRequest - 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 occurred during the operation.
|
FCS Release jdmk-5_1-b34.1 2005.02.10_16:46:09_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||