|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.westhawk.snmp.event.RawPduReceivedSupport
This is a utility class that can be used by classes that support raw pdu listener functionality. You can use an instance of this class as a member field of your class and delegate various work to it.
Field Summary | |
static java.lang.String |
version_id
|
Constructor Summary | |
RawPduReceivedSupport(java.lang.Object src)
The constructor. |
Method Summary | |
void |
addRawPduListener(RawPduListener listener)
Adds the specified pdu listener to receive pdus. |
void |
empty()
Removes all the listeners. |
boolean |
fireRawPduReceived(int version,
java.lang.String hostAddress,
int hostPort,
byte[] message)
Fires an undecoded pdu event. |
int |
getListenerCount()
Returns the number of listeners. |
void |
removeRawPduListener(RawPduListener listener)
Removes the specified pdu listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String version_id
Constructor Detail |
public RawPduReceivedSupport(java.lang.Object src)
src
- The source (ListeningContext) of the pdu events when they are fired.Method Detail |
public void empty()
public int getListenerCount()
public void addRawPduListener(RawPduListener listener)
public void removeRawPduListener(RawPduListener listener)
public boolean fireRawPduReceived(int version, java.lang.String hostAddress, int hostPort, byte[] message)
version
- The SNMP version of the pduhostAddress
- The IP address of the host where the pdu came fromhostPort
- The remote port number of the host where the pdu came frommessage
- The pdu in bytes
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |