|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.management.snmp.agent.SnmpMibAgent com.sun.management.snmp.agent.SnmpProxy com.sun.management.snmp.agent.SnmpV3Proxy
public abstract class SnmpV3Proxy
The SnmpV3Proxy class is an abstract class that provides services to proxy an SNMP V3 agent.
It mains role is to handle various SNMP V1 V2 and V3 security contexts. Some rules are applied when call are received in an SNMP version and are forwarded in SNMP V3.
These rules are coded in the method translateParameters
. If you want to change them, just overload this
method.
Rules when forwarding to SNMP V3 peer details. You can change them by subclassing the proxy:
Field Summary |
---|
Fields inherited from class com.sun.management.snmp.agent.SnmpProxy |
---|
defaultTimeout |
Fields inherited from class com.sun.management.snmp.agent.SnmpMibAgent |
---|
server |
Constructor Summary | |
---|---|
SnmpV3Proxy(SnmpEngine engine,
SnmpPeer peer,
String rootOid,
String name)
Initializes this SNMP proxy with a SnmpPeer to which calls are forwarded. |
Method Summary | |
---|---|
protected abstract SnmpParams |
createParameters(SnmpPdu pdu)
Factory parameters method. |
abstract SnmpEngineId |
getEngineId()
The distant EngineId. |
protected SnmpParams |
translateParameters(SnmpMibRequest req)
Return the parameters to use when sending the call. |
Methods inherited from class com.sun.management.snmp.agent.SnmpProxy |
---|
check, forwardSetRequestOnCheck, get, get, getBulk, getEngine, getMibName, getNext, getNext, getPeer, getRootOid, getTimeout, handleReport, hideInvalidResponseError, init, isInvalidResponseErrorHidden, isSetRequestForwardedOnCheck, preRegister, set, set, setTimeout, skipError, skipError |
Methods inherited from class com.sun.management.snmp.agent.SnmpMibAgent |
---|
getBindingState, getMBeanServer, getSnmpAdaptor, getSnmpAdaptorName, 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 SnmpV3Proxy(SnmpEngine engine, SnmpPeer peer, String rootOid, String name) throws SnmpStatusException
SnmpAdaptorServer
engine
- The SNMP adaptor engine.peer
- The peer representing the proxied agent.rootOid
- The proxy root oid.name
- The proxy name.
IllegalArgumentException
- if the passed engine is null.
SnmpStatusException
- An error occurred while accessing
a MIB node.Method Detail |
---|
public abstract SnmpEngineId getEngineId()
protected abstract SnmpParams createParameters(SnmpPdu pdu) throws SnmpStatusException
SnmpUsmParameters
instance.
pdu
- Can be null.
SnmpStatusException
protected SnmpParams translateParameters(SnmpMibRequest req) throws SnmpStatusException
translateParameters
in class SnmpProxy
req
- The received request.
SnmpStatusException
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |