1 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
3 package org.opendaylight.openflowjava.protocol.spi.connection;
5 import java.util.Collection;
7 import java.util.concurrent.Future;
9 import org.opendaylight.openflowjava.protocol.api.connection.ConnectionConfiguration;
10 import org.opendaylight.openflowjava.protocol.api.connection.SwitchConnectionHandler;
14 * @author michal.polkorab
17 public interface SwitchConnectionProvider {
20 * @param configurations list of [protocol, port, address and supported features]
22 public void configure(Collection<ConnectionConfiguration> configurations);
25 * start listening to switches, but please don't forget to do
26 * {@link #setSwitchConnectionHandler(SwitchConnectionHandler)} first
27 * @return future, triggered to true, when all listening channels are up and running
29 public Future<List<Boolean>> startup();
32 * stop listening to switches
33 * @return future, triggered to true, when all listening channels are down
35 public Future<List<Boolean>> shutdown();
38 * @param switchConHandler instance being informed when new switch connects
40 public void setSwitchConnectionHandler(SwitchConnectionHandler switchConHandler);