Merge "BUG-2329 Add test for anyxmls inside rpc resonse for netcfon-connector"
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / discovery / IDiscoveryService.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.sal.discovery;
11
12 import java.util.Set;
13
14 import org.opendaylight.controller.sal.core.Edge;
15 import org.opendaylight.controller.sal.core.Property;
16 import org.opendaylight.controller.sal.core.UpdateType;
17
18 /**
19  * The interface provides the methods to notify the listener when an edge is
20  * added/deleted/changed.
21  */
22 public interface IDiscoveryService {
23     /**
24      * The methods is called when an edge is added/deleted/changed
25      *
26      * @param edge                      {@link org.opendaylight.controller.sal.core.Edge} being updated
27      * @param type              {@link org.opendaylight.controller.sal.core.UpdateType}
28      * @param props             set of {@link org.opendaylight.controller.sal.core.Property} like
29      *                                          {@link org.opendaylight.controller.sal.core.Bandwidth} and/or
30      *                                          {@link org.opendaylight.controller.sal.core.Latency} etc.
31      */
32     public void notifyEdge(Edge edge, UpdateType type, Set<Property> props);
33 }