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