package org.opendaylight.protocol.pcep;
import io.netty.channel.ChannelFuture;
-import io.netty.util.concurrent.Future;
import java.io.IOException;
import java.net.InetSocketAddress;
-import org.opendaylight.protocol.framework.ReconnectStrategy;
import org.opendaylight.protocol.framework.SessionListenerFactory;
/**
public interface PCEPDispatcher {
/**
* Creates server. Each server needs three factories to pass their instances to client sessions.
+ *
* @param address to be bound with the server
* @param listenerFactory to create listeners for clients
- * @param proposalFactory to create proposed open objects for clients
- * @param checkerFactory to create session characteristics checker for clients
* @return instance of PCEPServer
* @throws IOException if some IO error occurred
*/
public ChannelFuture createServer(final InetSocketAddress address, final SessionListenerFactory<PCEPSessionListener> listenerFactory);
-
- /**
- * Creates a client. Needs to be started via the start method.
- * @param connection PCEP connection settings
- * @param strategy Reconnection strategy to be used for TCP-level connection
- * @throws IOException if some IO error occurred
- */
- public Future<? extends PCEPSession> createClient(InetSocketAddress address, final PCEPSessionListener listener, final ReconnectStrategy strategy);
}
-