Package uk.co.westhawk.snmp.event
Class RequestPduReceivedSupport
java.lang.Object
uk.co.westhawk.snmp.event.RequestPduReceivedSupport
This is a utility class that can be used by classes that support 
 request pdu listener functionality. 
 You can use an instance of this class as a member field
 of your class and delegate various work to it.
- Since:
 - 4_14
 - Version:
 - $Revision: 1.4 $ $Date: 2006/01/17 17:59:33 $
 - Author:
 - Birgit Arkesteijn
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestPduListener(RequestPduListener listener) Adds the specified pdu listener to receive pdus.voidempty()Removes all the listeners.voidfireRequestPduReceived(Pdu pdu, int hostPort) Fires a decoded pdu event.intReturns the number of listeners.voidremoveRequestPduListener(RequestPduListener listener) Removes the specified pdu listener. 
- 
Field Details
- 
version_id
- See Also:
 
 
 - 
 - 
Constructor Details
- 
RequestPduReceivedSupport
The constructor.- Parameters:
 src- The source (SnmpContext) of the pdu events when they are fired.
 
 - 
 - 
Method Details
- 
empty
public void empty()Removes all the listeners. - 
getListenerCount
public int getListenerCount()Returns the number of listeners.- Returns:
 - The number of listeners.
 
 - 
addRequestPduListener
Adds the specified pdu listener to receive pdus. - 
removeRequestPduListener
Removes the specified pdu listener. - 
fireRequestPduReceived
Fires a decoded pdu event. The event is fired to all listeners, whether they consume it or not.- Parameters:
 pdu- The decoded pdu pdu.
 
 -