import java.util.Dictionary;
import java.util.List;
-import java.util.Set;
-import java.util.ArrayList;
-
import org.apache.felix.dm.Component;
import org.opendaylight.controller.protocol_plugin.openflow.IRefreshInternalProvider;
import org.opendaylight.controller.protocol_plugin.openflow.ITopologyServiceShimListener;
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;
/**
* Function called by the dependency manager when all the required
* dependencies are satisfied
- *
+ *
*/
@SuppressWarnings("unchecked")
void init(Component c) {
* 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!");
/**
* 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!");
* 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!");
/**
* Retrieve SAL service IPluginOutTopologyService
- *
+ *
* @param s
* Called by Dependency Manager as soon as the SAL service is
* available
/**
* called when SAL service IPluginOutTopologyService is no longer available
- *
+ *
* @param s
* Called by Dependency Manager as soon as the SAL service is
* unavailable
/**
* Retrieve OF protocol_plugin service IRefreshInternalProvider
- *
+ *
* @param s
* Called by Dependency Manager as soon as the SAL service is
* available
/**
* 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
}
@Override
- public void edgeUpdate(Edge edge, UpdateType type, Set<Property> props) {
+ public void edgeUpdate(List<TopoEdgeUpdate> topoedgeupdateList) {
if (this.salTopoService != null) {
- List<TopoEdgeUpdate> topoedgeupdateList = new ArrayList<TopoEdgeUpdate>();
- TopoEdgeUpdate teu = new TopoEdgeUpdate(edge, props, type);
- topoedgeupdateList.add(teu);
this.salTopoService.edgeUpdate(topoedgeupdateList);
}
}