X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Ftopologymanager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Ftopologymanager%2FITopologyManager.java;h=1f377593bb8282cb6f303354531e4b6368f5c1ff;hb=bd396fa9b759466b8e9cd9b0ac64ee99406f72e7;hp=de4f0d5347eb5b7954e8f9e5c2d84748f562ee84;hpb=c85c9112b0db092bd565bcf9e5174ecfa67ae1d2;p=controller.git diff --git a/opendaylight/topologymanager/src/main/java/org/opendaylight/controller/topologymanager/ITopologyManager.java b/opendaylight/topologymanager/src/main/java/org/opendaylight/controller/topologymanager/ITopologyManager.java index de4f0d5347..1f377593bb 100644 --- a/opendaylight/topologymanager/src/main/java/org/opendaylight/controller/topologymanager/ITopologyManager.java +++ b/opendaylight/topologymanager/src/main/java/org/opendaylight/controller/topologymanager/ITopologyManager.java @@ -9,6 +9,7 @@ package org.opendaylight.controller.topologymanager; +import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentMap; @@ -67,12 +68,23 @@ public interface ITopologyManager { public Set getNodeConnectorWithHost(); /** - * Return the Host attached to a NodeConnector with Host - * + * Return the Host attached to a NodeConnector with Host. + * Multiple hosts maybe attached to a node connector. + * This method returns the first one only. Hence it has been + * deprecated. Use the new method getHostsAttachedToNodeConnector + * that returns the complete list of hosts. * @return The Host attached to a NodeConnector */ + @Deprecated public Host getHostAttachedToNodeConnector(NodeConnector p); + /** + * Returns a list of hosts attached to a NodeConnector + * @param p NodeConnector + * @return The list of hosts attached to a NodeConnector + */ + public List getHostsAttachedToNodeConnector(NodeConnector p); + /** * Returns a copy map which associates every node with all the * NodeConnectors of the node that have an Host attached to it