BUG 2302 : odl-clustering-test-app should not be part of the odl-restconf-all feature set
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / core / ISwitchStateListener.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.protocol_plugin.openflow.core;
11
12 /**
13  * Interface to be implemented by applications that want to receive switch state event changes.
14  *
15  */
16 public interface ISwitchStateListener {
17     /**
18      * This method is invoked by Controller when a switch has been connected to the Controller.
19      * Application who wants to receive this event needs to implement this method.
20      * @param sw The switch that has just connected.
21      */
22     public void switchAdded(ISwitch sw);
23
24     /**
25      * This method is invoked by Controller when a switch has been disconnected from the Controller.
26      * Application who wants to receive this event needs to implement this method.
27      * @param sw The switch that has just disconnected.
28      */
29     public void switchDeleted(ISwitch sw);
30
31 }