Add get configuration function to be able to access the openflow connection config...
[openflowjava.git] / openflow-protocol-spi / src / main / java / org / opendaylight / openflowjava / protocol / spi / connection / SwitchConnectionProvider.java
index 69d08fbb8c4be6f8f3cdc1bddb7a372dc57b25c0..b013471f3b7388d75bd8099a5eba357ecb333ece 100644 (file)
@@ -28,23 +28,28 @@ public interface SwitchConnectionProvider extends AutoCloseable,
      * @param configuration [protocol, port, address and supported features]
      */
     void setConfiguration(ConnectionConfiguration configuration);
-    
+
+    /**
+     * return the connection configuration
+     * @return configuration [protocol, port, address and supported features]
+     */
+    ConnectionConfiguration getConfiguration();
+
     /**
      * start listening to switches, but please don't forget to do
      * {@link #setSwitchConnectionHandler(SwitchConnectionHandler)} first
      * @return future, triggered to true, when listening channel is up and running
      */
     ListenableFuture<Boolean> startup();
-    
+
     /**
      * stop listening to switches
      * @return future, triggered to true, when all listening channels are down
      */
     ListenableFuture<Boolean> shutdown();
-    
+
     /**
      * @param switchConHandler instance being informed when new switch connects
      */
     void setSwitchConnectionHandler(SwitchConnectionHandler switchConHandler);
-
 }
\ No newline at end of file