com.adventnet.snmp.snmp2.agent
Class SnmpPduRequestEvent

java.lang.Object
  extended by com.adventnet.utils.agent.AgentEventObject
      extended by com.adventnet.snmp.snmp2.agent.SnmpPduRequestEvent
All Implemented Interfaces:
java.io.Serializable

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

Field Summary
 
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.