|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.snmp.agent.SnmpMibAgent
com.sun.management.snmp.agent.SnmpProxy
com.sun.management.snmp.agent.SnmpV3Proxy
com.sun.management.snmp.agent.SnmpUsmProxy
public class SnmpUsmProxy
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.management.snmp.agent.SnmpProxy |
---|
defaultTimeout |
Fields inherited from class com.sun.management.snmp.agent.SnmpMibAgent |
---|
server |
Constructor Summary | |
---|---|
SnmpUsmProxy(SnmpEngine engine,
SnmpUsmPeer peer,
String rootOid)
Initializes this SNMP proxy with a SnmpPeer to which calls are forwarded. |
|
SnmpUsmProxy(SnmpEngine engine,
SnmpUsmPeer peer,
String rootOid,
String name)
Initializes this SNMP proxy with a SnmpPeer to which calls are forwarded. |
Method Summary | |
---|---|
protected SnmpParams |
createParameters(SnmpPdu pdu)
Factory parameters method. |
SnmpEngineId |
getEngineId()
The distant EngineId. |
protected boolean |
handleReport(SnmpRequest request)
Called when a report is received when forwarding a request. |
void |
resyncOnTimelinessReport(boolean retry)
When receiving a report, the proxy will resynchronize if the report is due to a timeliness desynchronization. |
Methods inherited from class com.sun.management.snmp.agent.SnmpV3Proxy |
---|
translateParameters |
Methods inherited from class com.sun.management.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.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 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
|
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 |