2 * Copyright (c) 2015 Red Hat, 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
8 package org.opendaylight.ovsdb.openstack.netvirt.api;
10 import java.util.List;
13 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
14 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
15 import org.osgi.framework.ServiceReference;
18 * This interface is used to cache ids of nodes that are needed by net-virt.
19 * The nodes are added and removed by an external listener.
21 * @author Flavio Fernandes (ffernand@redhat.com)
22 * @author Sam Hague (shague@redhat.com)
24 public interface NodeCacheManager {
25 void nodeAdded(Node node);
26 void nodeRemoved(Node node);
27 List<Node> getNodes();
28 Map<NodeId, Node> getOvsdbNodes();
29 List<Node> getBridgeNodes();
30 void cacheListenerAdded(final ServiceReference ref, NodeCacheListener handler);
31 void cacheListenerRemoved(final ServiceReference ref);