Performacne improvements via adding a netty-based openflowj and openflow plugin;...
[controller.git] / opendaylight / protocol_plugins / openflow_netty / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / core / ISwitchStateListener.java
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 (file)
index 0000000..608b6f5
--- /dev/null
@@ -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);
+
+}