Code Review
/
openflowjava.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
changes for config subsystem - BUG 754
[openflowjava.git]
/
openflow-protocol-spi
/
src
/
main
/
java
/
org
/
opendaylight
/
openflowjava
/
protocol
/
spi
/
connection
/
SwitchConnectionProvider.java
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 0465ab4ebbfa64a38dd90155e533574db6bf4aa2..56766a7bfd2258ab6fb5ef4ffea289e60399f8cc 100644
(file)
--- 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
@@
-9,41
+9,39
@@
package org.opendaylight.openflowjava.protocol.spi.connection;
package org.opendaylight.openflowjava.protocol.spi.connection;
-import java.util.Collection;
-import java.util.List;
-import java.util.concurrent.Future;
-
import org.opendaylight.openflowjava.protocol.api.connection.ConnectionConfiguration;
import org.opendaylight.openflowjava.protocol.api.connection.SwitchConnectionHandler;
import org.opendaylight.openflowjava.protocol.api.connection.ConnectionConfiguration;
import org.opendaylight.openflowjava.protocol.api.connection.SwitchConnectionHandler;
+import com.google.common.util.concurrent.ListenableFuture;
+
/**
* @author mirehak
* @author michal.polkorab
*
*/
/**
* @author mirehak
* @author michal.polkorab
*
*/
-public interface SwitchConnectionProvider {
+public interface SwitchConnectionProvider
extends AutoCloseable
{
/**
/**
- * @param configuration
s list of
[protocol, port, address and supported features]
+ * @param configuration [protocol, port, address and supported features]
*/
*/
-
public void configure(Collection<ConnectionConfiguration> configurations
);
+
void setConfiguration(ConnectionConfiguration configuration
);
/**
* start listening to switches, but please don't forget to do
* {@link #setSwitchConnectionHandler(SwitchConnectionHandler)} first
/**
* start listening to switches, but please don't forget to do
* {@link #setSwitchConnectionHandler(SwitchConnectionHandler)} first
- * @return future, triggered to true, when
all listening channels are
up and running
+ * @return future, triggered to true, when
listening channel is
up and running
*/
*/
-
public Future<List<Boolean>
> startup();
+
ListenableFuture<Boolean
> startup();
/**
* stop listening to switches
* @return future, triggered to true, when all listening channels are down
*/
/**
* stop listening to switches
* @return future, triggered to true, when all listening channels are down
*/
-
public Future<List<Boolean>
> shutdown();
+
ListenableFuture<Boolean
> shutdown();
/**
* @param switchConHandler instance being informed when new switch connects
*/
/**
* @param switchConHandler instance being informed when new switch connects
*/
-
public
void setSwitchConnectionHandler(SwitchConnectionHandler switchConHandler);
+ void setSwitchConnectionHandler(SwitchConnectionHandler switchConHandler);
}
}