2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.pcep;
10 import io.netty.channel.ChannelFuture;
12 import java.net.InetSocketAddress;
14 import org.opendaylight.protocol.framework.SessionListenerFactory;
17 * Dispatcher class for creating servers and clients.
19 public interface PCEPDispatcher {
21 * Creates server. Each server needs three factories to pass their instances to client sessions.
23 * @param address to be bound with the server
24 * @param listenerFactory to create listeners for clients
25 * @return instance of PCEPServer
27 ChannelFuture createServer(InetSocketAddress address, SessionListenerFactory<PCEPSessionListener> listenerFactory);