Merge "BUG-2329 Add test for anyxmls inside rpc resonse for netcfon-connector"
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / IInventoryShimInternalListener.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, 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
9 package org.opendaylight.controller.protocol_plugin.openflow;
10
11 import java.util.Set;
12
13 import org.opendaylight.controller.sal.core.Node;
14 import org.opendaylight.controller.sal.core.NodeConnector;
15 import org.opendaylight.controller.sal.core.Property;
16 import org.opendaylight.controller.sal.core.UpdateType;
17
18 /**
19  * The Interface provides inventory updates to inventory listeners within the
20  * protocol plugin
21  */
22 public interface IInventoryShimInternalListener {
23     /**
24      * Updates node and its properties
25      *
26      * @param node
27      *            {@link org.opendaylight.controller.sal.core.Node} being
28      *            updated
29      * @param type
30      *            update type {@link org.opendaylight.controller.sal.core.UpdateType}
31      * @param props
32      *            set of {@link org.opendaylight.controller.sal.core.Property}
33      *            such as
34      *            {@link org.opendaylight.controller.sal.core.Description}
35      *            and/or {@link org.opendaylight.controller.sal.core.Tier} etc.
36      */
37     public void updateNode(Node node, UpdateType type, Set<Property> props);
38
39     /**
40      * Updates node connector and its properties
41      *
42      * @param nodeConnector
43      *            {@link org.opendaylight.controller.sal.core.NodeConnector}
44      *            being updated
45      * @param type
46      *            update type {@link org.opendaylight.controller.sal.core.UpdateType}
47      * @param props
48      *            set of {@link org.opendaylight.controller.sal.core.Property}
49      *            such as
50      *            {@link org.opendaylight.controller.sal.core.Description}
51      *            and/or {@link org.opendaylight.controller.sal.core.State} etc.
52      */
53     public void updateNodeConnector(NodeConnector nodeConnector,
54             UpdateType type, Set<Property> props);
55
56 }