X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflow-protocol-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fspi%2Fconnection%2FSwitchConnectionProvider.java;h=b013471f3b7388d75bd8099a5eba357ecb333ece;hb=5946b29760593d24da1dc4f474e4e1b8bab59760;hp=69d08fbb8c4be6f8f3cdc1bddb7a372dc57b25c0;hpb=cd45764e40ef43a4a43979b3e8f04e8b0865739f;p=openflowjava.git diff --git a/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProvider.java b/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProvider.java index 69d08fbb..b013471f 100644 --- a/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProvider.java +++ b/openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProvider.java @@ -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 startup(); - + /** * stop listening to switches * @return future, triggered to true, when all listening channels are down */ ListenableFuture shutdown(); - + /** * @param switchConHandler instance being informed when new switch connects */ void setSwitchConnectionHandler(SwitchConnectionHandler switchConHandler); - } \ No newline at end of file