2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.protocol_plugins.stub.internal;
11 import org.opendaylight.controller.sal.core.Edge;
12 import org.opendaylight.controller.sal.core.Property;
13 import org.opendaylight.controller.sal.core.UpdateType;
14 import org.opendaylight.controller.sal.topology.IPluginInTopologyService;
15 import org.opendaylight.controller.sal.topology.IPluginOutTopologyService;
16 import org.opendaylight.controller.sal.topology.TopoEdgeUpdate;
18 import java.util.ArrayList;
19 import java.util.List;
22 public class TopologyServices implements IPluginInTopologyService {
23 private IPluginOutTopologyService pluginOutTopologyService;
27 public void sollicitRefresh() {
30 public void setPluginOutTopologyService(IPluginOutTopologyService pluginOutTopologyService){
31 this.pluginOutTopologyService = pluginOutTopologyService;
34 public void unsetPluginOutTopologyService(IPluginOutTopologyService pluginOutTopologyService){
35 this.pluginOutTopologyService = null;
39 public void addEdge(Edge edge, Set<Property> properties, UpdateType updateType){
41 List<TopoEdgeUpdate > topoedgeupdateList = new ArrayList<TopoEdgeUpdate>();
43 topoedgeupdateList.add(new TopoEdgeUpdate(edge, properties, updateType));
45 this.pluginOutTopologyService.edgeUpdate(topoedgeupdateList);