502a8149f88514e175849b7fababe5fbd8a41273
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / NodeCacheManager.java
1 /*
2  * Copyright (c) 2015 Red Hat, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.ovsdb.openstack.netvirt.api;
9
10 import java.util.List;
11 import java.util.Map;
12
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
16 /**
17  * This interface is used to cache ids of nodes that are needed by net-virt.
18  * The nodes are added and removed by an external listener.
19  *
20  * @author Flavio Fernandes (ffernand@redhat.com)
21  * @author Sam Hague (shague@redhat.com)
22  */
23 public interface NodeCacheManager {
24     public void nodeAdded(Node node);
25     public void nodeRemoved(Node node);
26     public List<Node> getNodes();
27     public Map<NodeId, Node> getOvsdbNodes();
28     public List<Node> getBridgeNodes();
29 }