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.bgp.rib.impl.spi;
10 import io.netty.channel.ChannelFuture;
11 import java.net.InetSocketAddress;
12 import org.opendaylight.protocol.concepts.KeyMapping;
15 * Dispatcher class for creating BGP server.
17 public interface BGPServerDispatcher {
20 * Create new BGP server to accept incoming bgp connections (bound to provided socket address).
22 * @param peerRegistry BGP peer registry
23 * @param address server address
24 * @return ChannelFuture promising a server session
26 ChannelFuture createServer(BGPPeerRegistry peerRegistry, InetSocketAddress address);
29 * Create new BGP server to accept incoming bgp connections (bound to provided socket address).
31 * @param peerRegistry BGP peer registry
32 * @param address server address
33 * @param keys KeyMapping
34 * @return ChannelFuture promising a server session
36 ChannelFuture createServer(BGPPeerRegistry peerRegistry, InetSocketAddress address, KeyMapping keys);