Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 5_1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uk.co.westhawk.snmp.event
Class DecodedPduEvent

    java.lang.Object
      |
      +--java.util.EventObject
            |
            +--uk.co.westhawk.snmp.event.DecodedPduEvent

All Implemented Interfaces:
  java.io.Serializable

Direct Known Subclasses:
  RequestPduEvent, TrapEvent

public abstract class DecodedPduEvent
extends java.util.EventObject

The DecodedPduEvent class. This class is delivered when a pdu is received.

Since:
  4_14
Version:
  $Revision: 1.5 $ $Date: 2006/02/09 14:30:18 $
Author:
  Birgit Arkesteijn
See Also:
  Serialized Form

Field Summary
`protected boolean` | `consumed`

Fields inherited from class java.util.EventObject
`source`

Constructor Summary
`DecodedPduEvent(java.lang.Object source, Pdu p, int prt)` The constructor for a decoded pdu event.

Method Summary
`void` | `consume()` Consumes this event so that it will not be sent to any other listeners.
`int` | `getHostPort()` The remote port number of the host where the pdu came from.
`Pdu` | `getPdu()` The pdu.
`boolean` | `isConsumed()` Returns whether or not this event has been consumed.

Methods inherited from class java.util.EventObject
`getSource, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### consumed

    protected boolean consumed

Constructor Detail

### DecodedPduEvent

    public DecodedPduEvent(java.lang.Object source,
                           Pdu p,
                           int prt)

  The constructor for a decoded pdu event. The SnmpContext classes will fire decoded pdu events.

Parameters:
  `source` - The source (SnmpContext) of the event
  `p` - The pdu
  `prt` - The remote port number of the host where the pdu came from
See Also:
  `getHostPort()`, `getPdu()`

Method Detail

### getHostPort

    public int getHostPort()

  The remote port number of the host where the pdu came from.

  Returns:
    The remote port number of the host or -1.

### getPdu

    public Pdu getPdu()

  The pdu. The pdu is part of a decoded pdu event.

  Returns:
    The decoded Pdu.

### consume

    public void consume()

  Consumes this event so that it will not be sent to any other listeners.

### isConsumed

    public boolean isConsumed()

  Returns whether or not this event has been consumed.

  See Also:
    `consume()`

Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 5_1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD