Make sure invokeOperation is set once
[controller.git] / opendaylight / adsal / switchmanager / api / src / main / java / org / opendaylight / controller / switchmanager / ISwitchManagerAware.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.switchmanager;
11
12 import org.opendaylight.controller.sal.core.Node;
13
14
15 /**
16  * The interface provides methods to notify listeners about subnet and mode
17  * changes.
18  */
19 public interface ISwitchManagerAware {
20     /**
21      * The method is called when subnet is added/deleted
22      *
23      * @param sub {@link org.opendaylight.controller.switchmanager.Subnet}
24      * @param add true if add; false if delete.
25      */
26     public void subnetNotify(Subnet sub, boolean add);
27
28     /**
29      * The method is called when proactive/reactive mode is changed in a node
30      *
31      * @param node {@link org.opendaylight.controller.sal.core.Node}
32      * @param proactive true if mode is set as proactive; false if mode is reactive.
33      */
34     public void modeChangeNotify(Node node, boolean proactive);
35 }