Package uk.co.westhawk.snmp.beans
Class UsmBeingDiscoveredBean
java.lang.Object
uk.co.westhawk.snmp.beans.UsmBeingDiscoveredBean
- All Implemented Interfaces:
EventListener
,RequestPduListener
This bean handles being discovered as an authoritative engine by an non-authoritative engine (SNMPv3 only).
The discovery process consists of two steps:
1. first the SNMP engine ID has to be discovered,
second the timeline details of the SNMP engine ID have to be discovered.
2. For the last step the username of the principal is needed.
All these parameters should be provided by (your own) UsmAgent.
This class is not very efficient. The private context discEngineIdContextIn will be the same for every SnmpContextv3 that creates this bean.
- Since:
- 4_14
- Version:
- $Revision: 1.8 $ $Date: 2009/03/05 15:51:42 $
- Author:
- Birgit Arkesteijn
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUsmBeingDiscoveredBean
(SnmpContextv3 myContext, UsmAgent myUsmAgent) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequestPduListener
(ListeningContextPool lcontext) void
Destroys all the contexts in use.void
removeRequestPduListener
(ListeningContextPool lcontext) void
Receiving an incoming (discovery) PDU request.
-
Constructor Details
-
UsmBeingDiscoveredBean
Constructor.- Parameters:
myUsmAgent
- The usmAgent that will provide all the authoritative engine parametersmyContext
- The context- Throws:
IOException
- See Also:
-
-
Method Details
-
addRequestPduListener
- Parameters:
lcontext
- The listening context for incoming (discovery) requests- Throws:
IOException
- See Also:
-
removeRequestPduListener
- Parameters:
lcontext
- Stop listening on this listening context for incoming (discovery) requests- Throws:
IOException
- See Also:
-
requestPduReceived
Receiving an incoming (discovery) PDU request.- Specified by:
requestPduReceived
in interfaceRequestPduListener
-
freeResources
public void freeResources()Destroys all the contexts in use.
-