|
|||||||||||
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.SnmpProxy
com.sun.jdmk.snmp.agent.SnmpV3Proxy
com.sun.jdmk.snmp.agent.SnmpUsmProxy
com.sun.management.snmp.agent
in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
The SnmpUsmProxy class provides an implementation of an SNMP V3 proxy. It uses the Usm based manager API in order to forward calls to distant peer. This is the object to instantiate in order to proxy an SNMP V3 agent that is Usm based.
Field Summary |
Fields inherited from class com.sun.jdmk.snmp.agent.SnmpProxy |
defaultTimeout |
Fields inherited from class com.sun.jdmk.snmp.agent.SnmpMibAgent |
server |
Constructor Summary | |
SnmpUsmProxy(SnmpEngine engine,
SnmpUsmPeer peer,
String rootOid)
Deprecated. Initializes this SNMP proxy with a SnmpPeer to which calls are forwarded. |
|
SnmpUsmProxy(SnmpEngine engine,
SnmpUsmPeer peer,
String rootOid,
String name)
Deprecated. Initializes this SNMP proxy with a SnmpPeer to which calls are forwarded. |
Method Summary | |
protected SnmpParams |
createParameters(SnmpPdu pdu)
Deprecated. Factory parameters method. |
SnmpEngineId |
getEngineId()
Deprecated. The distant EngineId. |
protected boolean |
handleReport(SnmpRequest request)
Deprecated. Called when a report is received when forwarding a request. |
void |
resyncOnTimelinessReport(boolean retry)
Deprecated. When receiving a report, the proxy will resynchronize if the report is due to a timeliness desynchronization. |
Methods inherited from class com.sun.jdmk.snmp.agent.SnmpV3Proxy |
translateParameters |
Methods inherited from class com.sun.jdmk.snmp.agent.SnmpProxy |
check, forwardSetRequestOnCheck, get, get, getBulk, getEngine, getMibName, getNext, getNext, getPeer, getRootOid, getTimeout, hideInvalidResponseError, init, isInvalidResponseErrorHidden, isSetRequestForwardedOnCheck, preRegister, set, set, setTimeout, skipError, skipError |
Methods inherited from class com.sun.jdmk.snmp.agent.SnmpMibAgent |
getBindingState, getMBeanServer, 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 SnmpUsmProxy(SnmpEngine engine, SnmpUsmPeer peer, String rootOid) throws SnmpStatusException
engine
- The SNMP adaptor engine.peer
- The peer representing the proxied agent.rootOid
- The proxy root oid.
IllegalArgumentException
- if the passed engine is null.
SnmpStatusException
- An error occurred while accessing
a MIB node.public SnmpUsmProxy(SnmpEngine engine, SnmpUsmPeer 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 SnmpEngineId getEngineId()
getEngineId
in class SnmpV3Proxy
public void resyncOnTimelinessReport(boolean retry)
retry
- true will retry, false will not.protected boolean handleReport(SnmpRequest request)
handleReport
in class SnmpProxy
request
- The request containing the received report.
true
means retry the call, the report has been
handled; false
means don't retry, the report
wasn't fixed.
If the received report is NotInTimeWindow, the
SnmpUsmPeer
is resynchronized.
If the synchronization succeeded, true
is returned,
false
otherwise.
protected final SnmpParams createParameters(SnmpPdu pdu) throws SnmpStatusException
createParameters
in class SnmpV3Proxy
pdu
- The pdu received in the SnmpMibRequest
or null
if received pdu was null.
SnmpStatusException
|
FCS Release jdmk-5_1-b34.2 2005.11.29_16:24:00_MET |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |