## Uses of Interface
com.h3c.sdn.common.Link

- Packages that use Link
  Package | Description
  --- | ---
  com.h3c.sdn.common | Definitions of general services applicable to multiple tiers of the SDN Controller.
  com.h3c.sdn.ctl.json | ...
  com.h3c.sdn.linkdisco | Definitions of the services provided by the Link Discovery Application.
  com.h3c.sdn.misc.dsync.net |
  com.h3c.sdn.misc.net |
  com.h3c.sdn.topology | Definitions of the interfaces provided by the Topology Services Application.

- - ### Uses of Link in com.h3c.sdn.common

    Methods in com.h3c.sdn.common that return Link
    Modifier and Type | Method and Description
    --- | ---
    `Link` | TopologyTree.`getTreeLink(DataPathId node)` Adds a node and associated Link to the tree.
    `Link` | LinkUpdate.`link()` Returns the link which was changed.

    Methods in com.h3c.sdn.common that return types with arguments of type Link
    Modifier and Type | Method and Description
    --- | ---
    `HashMap<DataPathId,Link>` | TopologyTree.`getLinks()` Provides All nodes and associated Links in the tree.
    `Map<DataPathId,Set<Link>>` | TopologyCluster.`links()` Retrieves the map of device dpid and the set of links associated to that dpid.
    `Set<Link>` | Path.`path()` Retrieves the set of links in a path.
    `List<Link>` | L2Path.`path()` Returns the sequence of `links`, which comprise the path.

  - ### Uses of Link in com.h3c.sdn.ctl.json

    Methods in com.h3c.sdn.ctl.json that return Link
    Modifier and Type | Method and Description
    --- | ---
    `Link` | LinkCodec.`decode(com.fasterxml.jackson.databind.node.ObjectNode node)`

    Methods in com.h3c.sdn.ctl.json with parameters of type Link
    Modifier and Type | Method and Description
    --- | ---
    `com.fasterxml.jackson.databind.node.ObjectNode` | LinkCodec.`encode(Link link)`

  - ### Uses of Link in com.h3c.sdn.linkdisco

    Methods in com.h3c.sdn.linkdisco that return types with arguments of type Link
    Modifier and Type | Method and Description
    --- | ---
    `Set<Link>` | LinkService.`getAllLinks()` Returns all links discovered in the network.
    `Set<Link>` | LinkService.`getDeviceLinks(DataPathId dpid)` Returns all links emanating from the given datapath.

  - ### Uses of Link in com.h3c.sdn.misc.dsync.net

    Methods in com.h3c.sdn.misc.dsync.net that return Link
    Modifier and Type | Method and Description
    --- | ---
    `Link` | BroadcastTreeSyncObj.`getTreeLink(DataPathId node)`

    Methods in com.h3c.sdn.misc.dsync.net that return types with arguments of type Link
    Modifier and Type | Method and Description
    --- | ---
    `HashMap<DataPathId,Link>` | BroadcastTreeSyncObj.`getLinks()`
    `Set<Link>` | LinkSyncObj.`getLinks()`
    `Map<DataPathId,Set<Link>>` | TopologyClusterSyncObj.`links()`

    Constructor parameters in com.h3c.sdn.misc.dsync.net with type arguments of type Link
    Constructor and Description
    `BroadcastTreeSyncObj(HashMap<DataPathId,Link> links, HashMap<DataPathId,Integer> costs)`
    `LinkSyncObj(Set<Link> linkLists)`
    `TopologyClusterSyncObj(long id, Map<DataPathId,Set<Link>> links, DataPathId root)`

  - ### Uses of Link in com.h3c.sdn.misc.net

    Classes in com.h3c.sdn.misc.net that implement Link
    Modifier and Type | Class and Description
    --- | ---
    `class` | `LinkDTO` Provides an implementation of `Link`.

    Fields in com.h3c.sdn.misc.net with type parameters of type Link
    Modifier and Type | Field and Description
    --- | ---
    `protected Map<DataPathId,Set<Link>>` | TopologyClusterDTO.`links` Map of nodes and associated links of the cluster.

    Methods in com.h3c.sdn.misc.net that return Link
    Modifier and Type | Method and Description
    --- | ---
    `Link` | BroadcastTree.`getTreeLink(DataPathId node)` Gives the Link associated to given node in the tree.
    `Link` | LinkUpdateDTO.`link()`

    Methods in com.h3c.sdn.misc.net that return types with arguments of type Link
    Modifier and Type | Method and Description
    --- | ---
    `HashMap<DataPathId,Link>` | BroadcastTree.`getLinks()` Provides All nodes and associated Links in the tree.
    `Map<DataPathId,Set<Link>>` | TopologyClusterDTO.`links()`
    `List<Link>` | L2PathDTO.`path()`

    Methods in com.h3c.sdn.misc.net with parameters of type Link
    Modifier and Type | Method and Description
    --- | ---
    `void` | TopologyClusterDTO.`addLink(Link l)` Adds the link to cluster.
    `void` | BroadcastTree.`addTreeLink(DataPathId myNode, Link link)` Adds a node and associated Link to the tree.

    Method parameters in com.h3c.sdn.misc.net with type arguments of type Link
    Modifier and Type | Method and Description
    --- | ---
    `void` | TopologyClusterDTO.`setLinks(Map<DataPathId,Set<Link>> links)`

    Constructors in com.h3c.sdn.misc.net with parameters of type Link
    Constructor and Description
    `LinkUpdateDTO(Link link, LinkUpdate.Type operation)` Creates a DTO representing an operation applied to a link.

    Constructor parameters in com.h3c.sdn.misc.net with type arguments of type Link
    Constructor and Description
    `BroadcastTree(HashMap<DataPathId,Link> nexthoplinks, HashMap<DataPathId,Integer> cost)` Creates a Tree representing all next hop links and cost.
    `L2PathDTO(DataPathId srcDpid, DataPathId dstDpid, List<Link> paths)` Creates L2 path representing all links between the given source and destination device.

  - ### Uses of Link in com.h3c.sdn.topology

    Methods in com.h3c.sdn.topology that return types with arguments of type Link
    Modifier and Type | Method and Description
    --- | ---
    `Map<DataPathId,Link>` | TopologyService.`getDestinationTree(DataPathId pktSrcDpid)`
    `Map<DataPathId,Link>` | TopologyService.`tree(long clusterId)` Represents set of nodes and the link which it contributes to the tree for the given cluster.

    Method parameters in com.h3c.sdn.topology with type arguments of type Link
    Modifier and Type | Method and Description
    --- | ---
    `L2Path` | TopologyService.`createL2RoutePath(DataPathId srcDpid, DataPathId dstDpid, List<Link> paths)` Change the Class L2Path to Class L2RoutePath for PathDaemon to use get/remove/contains, etc..

Copyright © 2014. All Rights Reserved.