com.adventnet.snmp.snmp2.agent
Class SnmpPduRequestEvent

java.lang.Object
  |
  +--com.adventnet.utils.agent.AgentEventObject
        |
        +--com.adventnet.snmp.snmp2.agent.SnmpPduRequestEvent

public class SnmpPduRequestEvent
extends AgentEventObject

This Event is generated whenever the agent receives an SnmpPDU. When a packet is recieved at the SnmpAgent.callback(..). The SnmpAgent gives the PDU to the dispatcher(PduRequestHandler) for further processing. through the SnmpPduRequestEvent.

See Also:
SnmpAgent, PduRequestHandler, Serialized Form

Fields inherited from class com.adventnet.utils.agent.AgentEventObject
source
 
Constructor Summary
SnmpPduRequestEvent(java.lang.Object agent, SnmpPDU pdu)
          Constructor for the SnmpPduRequestEvent
 
Method Summary
 SnmpPDU getSnmpPDU()
          Gets the SnmpPDU which is received at the SnmpAgent callback method.
 
Methods inherited from class com.adventnet.utils.agent.AgentEventObject
getSource, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpPduRequestEvent

public SnmpPduRequestEvent(java.lang.Object agent,
                           SnmpPDU pdu)
Constructor for the SnmpPduRequestEvent
Parameters:
agent - the SnmpAgent
pdu - the SnmpPDU received for the agent
Method Detail

getSnmpPDU

public SnmpPDU getSnmpPDU()
Gets the SnmpPDU which is received at the SnmpAgent callback method.
Returns:
The SnmpPDU.