X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fopenflow_netty%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Fcore%2FISwitchStateListener.java;fp=opendaylight%2Fprotocol_plugins%2Fopenflow_netty%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Fcore%2FISwitchStateListener.java;h=608b6f583b04703949b5720b98bf62e263c76827;hb=85073423c6069e4b58fffde7cf19c806b2b52dd5;hp=0000000000000000000000000000000000000000;hpb=c5630f2945eb5370f9829514ef72de41d41eb2be;p=controller.git diff --git a/opendaylight/protocol_plugins/openflow_netty/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/ISwitchStateListener.java b/opendaylight/protocol_plugins/openflow_netty/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/ISwitchStateListener.java new file mode 100644 index 0000000000..608b6f583b --- /dev/null +++ b/opendaylight/protocol_plugins/openflow_netty/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/ISwitchStateListener.java @@ -0,0 +1,31 @@ + +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + +package org.opendaylight.controller.protocol_plugin.openflow.core; + +/** + * Interface to be implemented by applications that want to receive switch state event changes. + * + */ +public interface ISwitchStateListener { + /** + * This method is invoked by Controller when a switch has been connected to the Controller. + * Application who wants to receive this event needs to implement this method. + * @param sw The switch that has just connected. + */ + public void switchAdded(ISwitch sw); + + /** + * This method is invoked by Controller when a switch has been disconnected from the Controller. + * Application who wants to receive this event needs to implement this method. + * @param sw The switch that has just disconnected. + */ + public void switchDeleted(ISwitch sw); + +}