com.h3c.of.ctl

## Interface DataPathEvent

- All Superinterfaces:
    Event, OpenflowEvent, TypedEvent<OpenflowEventType>

      public interface DataPathEvent
      extends OpenflowEvent

  An OpenFlow Controller DataPath event.

  These events are consumed by `DataPathListener`s who wish to be notified when datapaths connect to, or disconnect from, the controller.

  The event types associated with this event are:

  - `OpenflowEventType.DATAPATH_CONNECTED`
  - `OpenflowEventType.DATAPATH_DISCONNECTED`
  - `OpenflowEventType.DROPPED_EVENTS_CHECKPOINT`

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DataPathId` | `dpid()` Returns the id of the datapath associated with this event.
    `IpAddress` | `ip()` Returns the IP address of the datapath (i.e. the remote address of the network connection from the switch).
    `ProtocolVersion` | `negotiated()` Returns the protocol version negotiated between the controller and the associated datapath.

    - ### Methods inherited from interface com.h3c.util.event.TypedEvent

      `ts, type`

- - ### Method Detail

    - #### dpid

          DataPathId dpid()

      Returns the id of the datapath associated with this event.
      Returns:
        the datapath id

    - #### negotiated

          ProtocolVersion negotiated()

      Returns the protocol version negotiated between the controller and the associated datapath.
      Returns:
        the negotiated protocol version

    - #### ip

          IpAddress ip()

      Returns the IP address of the datapath (i.e. the remote address of the network connection from the switch).
      Returns:
        the IP address of the datapath

Copyright © 2014. All Rights Reserved.