Class SnmpContextv3Pool
- All Implemented Interfaces:
 SnmpContextBasisFace,SnmpContextv3Face
Every time a property changes the pool is checked for a SnmpContextv3 context that matches all the new properties of this class. If no such context exists, a new one is made. The PDUs associated with the old context remain associated with the old context.
 A counter indicates the number of times the context is referenced.
 The counter is decreased when destroy() is called.
 When the counter
 reaches zero, the context is released.
 
Note that because the underlying context can change when a property is changed and the PDUs remain associated with the old context, all properties have to be set BEFORE a PDU is sent.
- Version:
 - $Revision: 3.27 $ $Date: 2009/03/05 13:27:41 $
 - Author:
 - Birgit Arkesteijn
 - See Also:
 
- 
Field Summary
Fields inherited from interface uk.co.westhawk.snmp.stack.SnmpContextBasisFace
DEFAULT_PORT, MAXPDU, MSS, STANDARD_SOCKET, TCP_SOCKETFields inherited from interface uk.co.westhawk.snmp.stack.SnmpContextv3Face
AES_ENCRYPT, AES_PRIVACY_PROTOCOLS, AES192_ENCRYPT, AES256_ENCRYPT, AUTH_PROTOCOLS, DEFAULT_CONTEXT_NAME, DEFAULT_USERNAME, DES_ENCRYPT, MD5_PROTOCOL, NO_AUTH_PROTOCOL, PRIVACY_PROTOCOLS, PROTOCOL_NAMES, SHA1_PROTOCOL, SHA224_PROTOCOL, SHA256_PROTOCOL, SHA384_PROTOCOL, SHA512_PROTOCOL, SNMPv1_Security_Model, SNMPv2c_Security_Model, USM_Security_Model - 
Constructor Summary
ConstructorsConstructorDescriptionSnmpContextv3Pool(String host, int port) Constructor, using the Standard socket.SnmpContextv3Pool(String host, int port, String typeSocket) Constructor.SnmpContextv3Pool(String host, int port, String bindAddress, String typeSocket) Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds a discovery PDU.booleanAdds a PDU to the context.voidAdds the specified request pdu listener to receive PDUs on the default request pdu port 161 from the host that matches this context.voidaddRequestPduListener(RequestPduListener l, int port) Adds the specified request pdu listener to receive PDUs on the specified port from the host that matches this context.voidaddRequestPduListener(RequestPduListener l, ListeningContextPool lcontext) Adds the specified request pdu listener to receive PDUs on the specified listening context that matches this context.voidAdds the specified trap listener to receive traps on the default trap port 162 from the host that matches this context.voidaddTrapListener(TrapListener l, int port) Adds the specified trap listener to receive traps on the specified port from the host that matches this context.voidaddTrapListener(TrapListener l, ListeningContextPool lcontext) Adds the specified trap listener to receive traps on the specified listening context that matches this context.clone()This method is not supported.voiddestroy()Releases the resources held by this context.voidDestroys all the contexts in the pool and empties the pool.voiddumpContexts(String title) Dumps the pool of contexts.byte[]encodeDiscoveryPacket(byte msg_type, int rId, int errstat, int errind, Enumeration ve, Object obj) Encodes a discovery PDU.byte[]encodePacket(byte msg_type, int rId, int errstat, int errind, Enumeration ve, Object obj) Encodes a PDU.intReturns the protocol to be used for authentication.Returns the local bind address.byte[]Returns the contextEngineID.Returns the contextName.Returns the hash key.getHost()Returns the host.intgetPort()Returns the port number.intReturns the protocol to be used for privacy.Returns the IP address string aaa.bbb.ccc.ddd (IPv4) or a:b:c:d:e:f:g:h (IPv6) of the (latest) host the packets where received from.Returns the IP address string aaa.bbb.ccc.ddd (IPv4) or a:b:c:d:e:f:g:h (IPv6) of the host the packets where sent to.Returns the type of socket.Returns the user authentication password.Returns the username.Returns the user privacy password.Returns the UsmAgent.intReturns the SNMP version of the context.booleanReturns whether or not this context has been destroyed.booleanReturns if authentication is used or not.booleanReturns if privacy is used or not.processIncomingPdu(byte[] message) Processes an incoming PDU.booleanremovePdu(int requestId) Removes a PDU from the context.voidRemoves the specified request pdu listener from listening for packets on the default request pdu port 161.voidremoveRequestPduListener(RequestPduListener l, int port) Removes the specified request pdu listener from listening for packets on the specified port.voidRemoves the specified request pdu listener from listening for packets on the specified listening context.voidRemoves the specified trap listener from listening for packets on the default trap port 162.voidremoveTrapListener(TrapListener l, int port) Removes the specified trap listener from listening for packets on the specified port.voidremoveTrapListener(TrapListener l, ListeningContextPool lcontext) Removes the specified trap listener from listening for packets on the specified listening context.voidsendPacket(byte[] packet) Sends an encoded PDU.voidsetAuthenticationProtocol(int protocol) Sets the protocol to be used for authentication.voidsetContextEngineId(byte[] newContextEngineId) Sets the contextEngineID.voidsetContextName(String newContextName) Sets the contextName.voidsetPrivacyProtocol(int protocol) Sets the protocol to be used for privacy.voidsetUseAuthentication(boolean newUseAuthentication) Sets whether authentication has to be used.voidsetUsePrivacy(boolean newUsePrivacy) Sets whether privacy has to be used.voidsetUserAuthenticationPassword(String newUserAuthenticationPd) Sets the user authentication password.voidsetUserName(String newUserName) Sets the username.voidsetUserPrivacyPassword(String newUserPrivacyPd) Sets the user privacy password.voidsetUsmAgent(UsmAgent newAgent) Sets the UsmAgent, needed when this stack is used as authoritative SNMP engine.toString()Returns a string representation of the object. 
- 
Constructor Details
- 
SnmpContextv3Pool
Constructor, using the Standard socket.- Parameters:
 host- The host to which the PDU will be sentport- The port where the SNMP server will be- Throws:
 IOException- See Also:
 
 - 
SnmpContextv3Pool
Constructor. Parameter typeSocket should be either STANDARD_SOCKET, TCP_SOCKET or a fully qualified classname.- Parameters:
 host- The host to which the PDU will be sentport- The port where the SNMP server will betypeSocket- The type of socket to use.- Throws:
 IOException- See Also:
 
 - 
SnmpContextv3Pool
public SnmpContextv3Pool(String host, int port, String bindAddress, String typeSocket) throws IOException Constructor. Parameter typeSocket should be either STANDARD_SOCKET, TCP_SOCKET or a fully qualified classname.- Parameters:
 host- The host to which the PDU will be sentport- The port where the SNMP server will bebindAddress- The local address the server will bind totypeSocket- The type of socket to use.- Throws:
 IOException- Since:
 - 4_14
 - See Also:
 
 
 - 
 - 
Method Details
- 
getVersion
public int getVersion()Returns the SNMP version of the context.- Specified by:
 getVersionin interfaceSnmpContextBasisFace- Returns:
 - The version
 - See Also:
 
 - 
getHost
Returns the host.- Specified by:
 getHostin interfaceSnmpContextBasisFace- Returns:
 - The host
 
 - 
getPort
public int getPort()Returns the port number.- Specified by:
 getPortin interfaceSnmpContextBasisFace- Returns:
 - The port no
 
 - 
getBindAddress
Description copied from interface:SnmpContextBasisFaceReturns the local bind address. If bindAddress is null, then the system will pick up a valid local address to bind the socket.- Specified by:
 getBindAddressin interfaceSnmpContextBasisFace- Returns:
 - The local bind address
 
 - 
getTypeSocket
Returns the type of socket.- Specified by:
 getTypeSocketin interfaceSnmpContextBasisFace- Returns:
 - The type of socket
 - See Also:
 
 - 
getSendToHostAddress
Description copied from interface:SnmpContextBasisFaceReturns the IP address string aaa.bbb.ccc.ddd (IPv4) or a:b:c:d:e:f:g:h (IPv6) of the host the packets where sent to.- Specified by:
 getSendToHostAddressin interfaceSnmpContextBasisFace- Returns:
 - The IP address of the host the packets where sent to.
 - See Also:
 
 - 
getReceivedFromHostAddress
Description copied from interface:SnmpContextBasisFaceReturns the IP address string aaa.bbb.ccc.ddd (IPv4) or a:b:c:d:e:f:g:h (IPv6) of the (latest) host the packets where received from.- Specified by:
 getReceivedFromHostAddressin interfaceSnmpContextBasisFace- Returns:
 - The IP address of the (latest) host the packets where received from.
 - See Also:
 
 - 
getUserName
Description copied from interface:SnmpContextv3FaceReturns the username.- Specified by:
 getUserNamein interfaceSnmpContextv3Face- Returns:
 - the username
 
 - 
setUserName
Description copied from interface:SnmpContextv3FaceSets the username. This username will be used for all PDUs sent with this context. The username corresponds to the 'msgUserName' in SNMP-USER-BASED-SM-MIB. The default value is "initial".- Specified by:
 setUserNamein interfaceSnmpContextv3Face- Parameters:
 newUserName- The new username
 - 
isUseAuthentication
public boolean isUseAuthentication()Description copied from interface:SnmpContextv3FaceReturns if authentication is used or not. By default no authentication will be used.- Specified by:
 isUseAuthenticationin interfaceSnmpContextv3Face- Returns:
 - true if authentication is used, false if not
 
 - 
setUseAuthentication
public void setUseAuthentication(boolean newUseAuthentication) Description copied from interface:SnmpContextv3FaceSets whether authentication has to be used. By default no authentication will be used.- Specified by:
 setUseAuthenticationin interfaceSnmpContextv3Face- Parameters:
 newUseAuthentication- The use of authentication
 - 
getUserAuthenticationPassword
Description copied from interface:SnmpContextv3FaceReturns the user authentication password. This password will be transformed into the user authentication secret key.- Specified by:
 getUserAuthenticationPasswordin interfaceSnmpContextv3Face- Returns:
 - The user authentication password
 
 - 
setUserAuthenticationPassword
Description copied from interface:SnmpContextv3FaceSets the user authentication password. This password will be transformed into the user authentication secret key. A user MUST set this password.- Specified by:
 setUserAuthenticationPasswordin interfaceSnmpContextv3Face- Parameters:
 newUserAuthenticationPd- The user authentication password
 - 
setPrivacyProtocol
Description copied from interface:SnmpContextv3FaceSets the protocol to be used for privacy. This can either be DES or AES. By default DES will be used.- Specified by:
 setPrivacyProtocolin interfaceSnmpContextv3Face- Parameters:
 protocol- The privacy protocol to be used- Throws:
 IllegalArgumentException- See Also:
 
 - 
setAuthenticationProtocol
Description copied from interface:SnmpContextv3FaceSets the protocol to be used for authentication. This can either be MD5 or SHA-1. By default MD5 will be used.- Specified by:
 setAuthenticationProtocolin interfaceSnmpContextv3Face- Parameters:
 protocol- The authentication protocol to be used- Throws:
 IllegalArgumentException- See Also:
 
 - 
getPrivacyProtocol
public int getPrivacyProtocol()Description copied from interface:SnmpContextv3FaceReturns the protocol to be used for privacy. This can either be DES or AES. By default DES will be used.- Specified by:
 getPrivacyProtocolin interfaceSnmpContextv3Face- Returns:
 - The privacy protocol to be used
 - See Also:
 
 - 
getAuthenticationProtocol
public int getAuthenticationProtocol()Description copied from interface:SnmpContextv3FaceReturns the protocol to be used for authentication. This can either be MD5 or SHA-1. By default MD5 will be used.- Specified by:
 getAuthenticationProtocolin interfaceSnmpContextv3Face- Returns:
 - The authentication protocol to be used
 - See Also:
 
 - 
isUsePrivacy
public boolean isUsePrivacy()Description copied from interface:SnmpContextv3FaceReturns if privacy is used or not. By default no privacy will be used.- Specified by:
 isUsePrivacyin interfaceSnmpContextv3Face- Returns:
 - true if privacy is used, false if not
 
 - 
setUsePrivacy
public void setUsePrivacy(boolean newUsePrivacy) Description copied from interface:SnmpContextv3FaceSets whether privacy has to be used. By default no privacy will be used.- Specified by:
 setUsePrivacyin interfaceSnmpContextv3Face- Parameters:
 newUsePrivacy- The use of privacy
 - 
getUserPrivacyPassword
Description copied from interface:SnmpContextv3FaceReturns the user privacy password. This password will be transformed into the user privacy secret key.- Specified by:
 getUserPrivacyPasswordin interfaceSnmpContextv3Face- Returns:
 - The user privacy password
 
 - 
setUserPrivacyPassword
Description copied from interface:SnmpContextv3FaceSets the user privacy password. This password will be transformed into the user privacy secret key. A user MUST set this password.- Specified by:
 setUserPrivacyPasswordin interfaceSnmpContextv3Face- Parameters:
 newUserPrivacyPd- The user privacy password
 - 
setContextEngineId
Description copied from interface:SnmpContextv3FaceSets the contextEngineID. See RFC 3411. A contextEngineID uniquely identifies an SNMP entity that may realize an instance of a context with a particular contextName.Note, when the stack is an authoritative engine, this parameter should equal the UsmAgent.getSnmpEngineId(). See the StackUsage documentation for an explanation.
If the contextEngineID is of length zero, the encoder will use the (discovered) snmpEngineId.
- Specified by:
 setContextEngineIdin interfaceSnmpContextv3Face- Parameters:
 newContextEngineId- The contextEngineID- Throws:
 IllegalArgumentException- See Also:
 
 - 
getContextEngineId
public byte[] getContextEngineId()Description copied from interface:SnmpContextv3FaceReturns the contextEngineID.- Specified by:
 getContextEngineIdin interfaceSnmpContextv3Face- Returns:
 - The contextEngineID
 
 - 
setContextName
Description copied from interface:SnmpContextv3FaceSets the contextName. See RFC 3411. A contextName is used to name a context. Each contextName MUST be unique within an SNMP entity. By default this is "".- Specified by:
 setContextNamein interfaceSnmpContextv3Face- Parameters:
 newContextName- The contextName- See Also:
 
 - 
getContextName
Description copied from interface:SnmpContextv3FaceReturns the contextName.- Specified by:
 getContextNamein interfaceSnmpContextv3Face- Returns:
 - The contextName
 
 - 
setUsmAgent
Description copied from interface:SnmpContextv3FaceSets the UsmAgent, needed when this stack is used as authoritative SNMP engine. This interface provides authentiation details, like its clock and its Engine ID.- Specified by:
 setUsmAgentin interfaceSnmpContextv3Face- Parameters:
 newAgent- The USM authoritative interface
 - 
getUsmAgent
Description copied from interface:SnmpContextv3FaceReturns the UsmAgent.- Specified by:
 getUsmAgentin interfaceSnmpContextv3Face- See Also:
 
 - 
addDiscoveryPdu
public boolean addDiscoveryPdu(DiscoveryPdu pdu) throws IOException, PduException, IllegalArgumentException Description copied from interface:SnmpContextv3FaceAdds a discovery PDU. This is for internal use only and should NOT be called by the developer. This is called by the the PDU itself and is added to the interface to cover the different kind of Contexts.- Specified by:
 addDiscoveryPduin interfaceSnmpContextv3Face- Parameters:
 pdu- the discovery PDU- Returns:
 - PDU is succesful added
 - Throws:
 IOExceptionPduExceptionIllegalArgumentException
 - 
addPdu
Description copied from interface:SnmpContextBasisFaceAdds a PDU to the context. This is for internal use only and should NOT be called by the developer. This is called by the the Pdu itself and is added to the interface to cover the different kind of Contexts.- Specified by:
 addPduin interfaceSnmpContextBasisFace- Parameters:
 pdu- the PDU- Returns:
 - whether the PDU has been successfully added
 - Throws:
 IOExceptionPduExceptionIllegalArgumentException
 - 
removePdu
public boolean removePdu(int requestId) Description copied from interface:SnmpContextBasisFaceRemoves a PDU from the context. This is for internal use only and should NOT be called by the developer. This is called by the the PDU itself and is added to the interface to cover the different kind of Contexts.- Specified by:
 removePduin interfaceSnmpContextBasisFace- Parameters:
 requestId- the PDU request id- Returns:
 - whether the PDU has been successfully removed
 
 - 
encodeDiscoveryPacket
public byte[] encodeDiscoveryPacket(byte msg_type, int rId, int errstat, int errind, Enumeration ve, Object obj) throws IOException, EncodingException Description copied from interface:SnmpContextv3FaceEncodes a discovery PDU. This is for internal use only and should NOT be called by the developer. This is called by the the PDU itself and is added to the interface to cover the different kind of Contexts.- Specified by:
 encodeDiscoveryPacketin interfaceSnmpContextv3Face- Returns:
 - The encoded packet
 - Throws:
 IOExceptionEncodingException
 - 
encodePacket
public byte[] encodePacket(byte msg_type, int rId, int errstat, int errind, Enumeration ve, Object obj) throws IOException, EncodingException Description copied from interface:SnmpContextBasisFaceEncodes a PDU. This is for internal use only and should NOT be called by the developer. This is called by the the PDU itself and is added to the interface to cover the different kind of Contexts.- Specified by:
 encodePacketin interfaceSnmpContextBasisFace- Parameters:
 msg_type- The message typerId- The message iderrstat- The error statuserrind- The error indexve- The varbind listobj- Additional object (only used in SNMPv3)- Returns:
 - The encoded packet
 - Throws:
 IOExceptionEncodingException
 - 
sendPacket
public void sendPacket(byte[] packet) Description copied from interface:SnmpContextBasisFaceSends an encoded PDU. This is for internal use only and should NOT be called by the developer. This is called by the the PDU itself and is added to the interface to cover the different kind of Contexts.- Specified by:
 sendPacketin interfaceSnmpContextBasisFace- Parameters:
 packet- The encoded packet
 - 
destroy
public void destroy()Releases the resources held by this context. This method will decrement the reference counter. When the reference counter reaches zero the actual context is removed from the pool and destroyed.- Specified by:
 destroyin interfaceSnmpContextBasisFace
 - 
destroyPool
public void destroyPool()Destroys all the contexts in the pool and empties the pool.- Since:
 - 4_14
 - See Also:
 
 - 
isDestroyed
public boolean isDestroyed()Description copied from interface:SnmpContextBasisFaceReturns whether or not this context has been destroyed.- Specified by:
 isDestroyedin interfaceSnmpContextBasisFace
 - 
dumpContexts
Dumps the pool of contexts. This is for debug purposes.- Parameters:
 title- The title of the dump
 - 
getHashKey
Returns the hash key. This key is built out of all properties. It serves as key for the hashtable of (v3) contexts.- Specified by:
 getHashKeyin interfaceSnmpContextBasisFace- Returns:
 - The hash key
 
 - 
addTrapListener
Description copied from interface:SnmpContextBasisFaceAdds the specified trap listener to receive traps on the default trap port 162 from the host that matches this context.The ListeningContext class will do the actual listening for traps. This context will add itself to a ListeningContextPool object and will only pass the event to its listeners if the pdu matches this context and is a trap pdu.
- Specified by:
 addTrapListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The trap listener- Throws:
 IOException- See Also:
 
 - 
removeTrapListener
Description copied from interface:SnmpContextBasisFaceRemoves the specified trap listener from listening for packets on the default trap port 162.The listener will not be removed from all ListeningContext objects that are in the ListeningContextPool. In order to do that, use ListeningContextPool.removeTrapListenerFromPool()
- Specified by:
 removeTrapListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The trap listener- Throws:
 IOException- See Also:
 
 - 
addTrapListener
Description copied from interface:SnmpContextBasisFaceAdds the specified trap listener to receive traps on the specified port from the host that matches this context.The ListeningContext class will do the actual listening for traps. This context will add itself to a ListeningContextPool object and will only pass the event to its listeners if the pdu matches this context and is a trap pdu.
- Specified by:
 addTrapListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The trap listenerport- The port the traps are received on- Throws:
 IOException- See Also:
 
 - 
removeTrapListener
Description copied from interface:SnmpContextBasisFaceRemoves the specified trap listener from listening for packets on the specified port.The listener will not be removed from all ListeningContext objects that are in the ListeningContextPool. In order to do that, use ListeningContextPool.removeTrapListenerFromPool()
- Specified by:
 removeTrapListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The trap listenerport- The port the traps are received on- Throws:
 IOException- See Also:
 
 - 
addTrapListener
Description copied from interface:SnmpContextBasisFaceAdds the specified trap listener to receive traps on the specified listening context that matches this context.The ListeningContext class will do the actual listening for traps. This context will add itself to a ListeningContextPool object and will only pass the event to its listeners if the pdu matches this context and is a trap pdu.
- Specified by:
 addTrapListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The trap listenerlcontext- The listening context- Throws:
 IOException- See Also:
 
 - 
removeTrapListener
Description copied from interface:SnmpContextBasisFaceRemoves the specified trap listener from listening for packets on the specified listening context.The listener will not be removed from all ListeningContext objects that are in the ListeningContextPool. In order to do that, use ListeningContextPool.removeTrapListenerFromPool()
- Specified by:
 removeTrapListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The trap listenerlcontext- The listening context- Throws:
 IOException- See Also:
 
 - 
addRequestPduListener
Description copied from interface:SnmpContextBasisFaceAdds the specified request pdu listener to receive PDUs on the default request pdu port 161 from the host that matches this context.The ListeningContext class will do the actual listening for PDUs. This context will add itself to a ListeningContextPool object and will only pass the event to its listeners if the pdu matches this context and is a request pdu.
Don't use the TCP_SOCKET when listening for request PDUs. It doesn't provide functionality to send a response back.
- Specified by:
 addRequestPduListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The request PDU listener- Throws:
 IOException- See Also:
 
 - 
removeRequestPduListener
Description copied from interface:SnmpContextBasisFaceRemoves the specified request pdu listener from listening for packets on the default request pdu port 161.The listener will not be removed from all ListeningContext objects that are in the ListeningContextPool. In order to do that, use ListeningContextPool.removeRequestPduListenerFromPool()
- Specified by:
 removeRequestPduListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The request PDU listener- Throws:
 IOException- See Also:
 
 - 
addRequestPduListener
Description copied from interface:SnmpContextBasisFaceAdds the specified request pdu listener to receive PDUs on the specified port from the host that matches this context.The ListeningContext class will do the actual listening for PDUs. This context will add itself to a ListeningContextPool object and will only pass the event to its listeners if the pdu matches this context and is a request pdu.
Don't use the TCP_SOCKET when listening for request PDUs. It doesn't provide functionality to send a response back.
- Specified by:
 addRequestPduListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The request PDU listenerport- The port the request PDUs are received on- Throws:
 IOException- See Also:
 
 - 
removeRequestPduListener
Description copied from interface:SnmpContextBasisFaceRemoves the specified request pdu listener from listening for packets on the specified port.The listener will not be removed from all ListeningContext objects that are in the ListeningContextPool. In order to do that, use ListeningContextPool.removeRequestPduListenerFromPool()
- Specified by:
 removeRequestPduListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The request PDU listenerport- The port the request PDUs are received on- Throws:
 IOException- See Also:
 
 - 
addRequestPduListener
public void addRequestPduListener(RequestPduListener l, ListeningContextPool lcontext) throws IOException Description copied from interface:SnmpContextBasisFaceAdds the specified request pdu listener to receive PDUs on the specified listening context that matches this context.The ListeningContext class will do the actual listening for PDUs. This context will add itself to a ListeningContextPool object and will only pass the event to its listeners if the pdu matches this context and is a request pdu.
Don't use the TCP_SOCKET when listening for request PDUs. It doesn't provide functionality to send a response back.
- Specified by:
 addRequestPduListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The request PDU listenerlcontext- The listening context- Throws:
 IOException- See Also:
 
 - 
removeRequestPduListener
public void removeRequestPduListener(RequestPduListener l, ListeningContextPool lcontext) throws IOException Description copied from interface:SnmpContextBasisFaceRemoves the specified request pdu listener from listening for packets on the specified listening context.The listener will not be removed from all ListeningContext objects that are in the ListeningContextPool. In order to do that, use ListeningContextPool.removeRequestPduListenerFromPool()
- Specified by:
 removeRequestPduListenerin interfaceSnmpContextBasisFace- Parameters:
 l- The request PDU listenerlcontext- The listening context- Throws:
 IOException- See Also:
 
 - 
processIncomingPdu
Description copied from interface:SnmpContextBasisFaceProcesses an incoming PDU. The context will try to process the incoming PDU, using the SNMP version and other security parameters. If any of these do not correspond, a DecodingException will be thrown.- Specified by:
 processIncomingPduin interfaceSnmpContextBasisFace- Throws:
 DecodingExceptionIOException
 - 
toString
Returns a string representation of the object. - 
clone
This method is not supported. It will throw a CloneNotSupportedException.- Specified by:
 clonein interfaceSnmpContextBasisFace- Throws:
 CloneNotSupportedException- Thrown when the constructor generates an IOException or when in one of the Pool classes.- Since:
 - 4_14
 
 
 -