3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
10 package org.opendaylight.controller.protocol_plugin.openflow.core;
13 * Interface to be implemented by applications that want to receive switch state event changes.
16 public interface ISwitchStateListener {
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.
22 public void switchAdded(ISwitch sw);
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.
29 public void switchDeleted(ISwitch sw);