X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fopenflow%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Finternal%2FTopologyServices.java;h=68572fb65086ef4c7901dc4179caf03e57c12233;hb=edf5bfcee83c750853253ccfd991ba7000f5f65b;hp=64515887c07c35523b6afedbc1d4d3021915e899;hpb=e326757873804be369d20efd0b54467871094c06;p=controller.git diff --git a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/TopologyServices.java b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/TopologyServices.java index 64515887c0..68572fb650 100644 --- a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/TopologyServices.java +++ b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/TopologyServices.java @@ -9,8 +9,7 @@ package org.opendaylight.controller.protocol_plugin.openflow.internal; import java.util.Dictionary; -import java.util.Set; - +import java.util.List; import org.apache.felix.dm.Component; import org.opendaylight.controller.protocol_plugin.openflow.IRefreshInternalProvider; import org.opendaylight.controller.protocol_plugin.openflow.ITopologyServiceShimListener; @@ -18,10 +17,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.opendaylight.controller.sal.core.Edge; -import org.opendaylight.controller.sal.core.Property; -import org.opendaylight.controller.sal.core.UpdateType; import org.opendaylight.controller.sal.topology.IPluginInTopologyService; import org.opendaylight.controller.sal.topology.IPluginOutTopologyService; +import org.opendaylight.controller.sal.topology.TopoEdgeUpdate; public class TopologyServices implements ITopologyServiceShimListener, IPluginInTopologyService { @@ -34,7 +32,7 @@ public class TopologyServices implements ITopologyServiceShimListener, /** * Function called by the dependency manager when all the required * dependencies are satisfied - * + * */ @SuppressWarnings("unchecked") void init(Component c) { @@ -48,7 +46,7 @@ public class TopologyServices implements ITopologyServiceShimListener, * Function called by the dependency manager when at least one dependency * become unsatisfied or when the component is shutting down because for * example bundle is being stopped. - * + * */ void destroy() { logger.trace("DESTROY called!"); @@ -57,7 +55,7 @@ public class TopologyServices implements ITopologyServiceShimListener, /** * Function called by dependency manager after "init ()" is called and after * the services provided by the class are registered in the service registry - * + * */ void start() { logger.trace("START called!"); @@ -67,7 +65,7 @@ public class TopologyServices implements ITopologyServiceShimListener, * Function called by the dependency manager before the services exported by * the component are unregistered, this will be followed by a "destroy ()" * calls - * + * */ void stop() { logger.trace("STOP called!"); @@ -75,7 +73,7 @@ public class TopologyServices implements ITopologyServiceShimListener, /** * Retrieve SAL service IPluginOutTopologyService - * + * * @param s * Called by Dependency Manager as soon as the SAL service is * available @@ -87,7 +85,7 @@ public class TopologyServices implements ITopologyServiceShimListener, /** * called when SAL service IPluginOutTopologyService is no longer available - * + * * @param s * Called by Dependency Manager as soon as the SAL service is * unavailable @@ -101,7 +99,7 @@ public class TopologyServices implements ITopologyServiceShimListener, /** * Retrieve OF protocol_plugin service IRefreshInternalProvider - * + * * @param s * Called by Dependency Manager as soon as the SAL service is * available @@ -114,7 +112,7 @@ public class TopologyServices implements ITopologyServiceShimListener, /** * called when OF protocol_plugin service IRefreshInternalProvider is no * longer available - * + * * @param s * Called by Dependency Manager as soon as the SAL service is * unavailable @@ -127,9 +125,9 @@ public class TopologyServices implements ITopologyServiceShimListener, } @Override - public void edgeUpdate(Edge edge, UpdateType type, Set props) { + public void edgeUpdate(List topoedgeupdateList) { if (this.salTopoService != null) { - this.salTopoService.edgeUpdate(edge, type, props); + this.salTopoService.edgeUpdate(topoedgeupdateList); } }