Remove deprecated methods 86/68786/2
authorClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Thu, 1 Feb 2018 22:57:44 +0000 (23:57 +0100)
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Tue, 27 Feb 2018 09:24:45 +0000 (10:24 +0100)
Change-Id: I7abb75ae3b151e3ff3171b78fee47cb6853c2478
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPDispatcherImpl.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/spi/BGPDispatcher.java

index 61a930055942e43edc454535aa474fb495597259..a35bd0a02330312d7239756431256fcf9a96c749 100644 (file)
@@ -76,14 +76,6 @@ public class BGPDispatcherImpl implements BGPDispatcher, AutoCloseable {
         this.handlerFactory = new BGPHandlerFactory(messageRegistry);
     }
 
-    @Override
-    public synchronized Future<BGPSessionImpl> createClient(
-            final InetSocketAddress remoteAddress,
-            final int retryTimer) {
-        return createClient(remoteAddress, retryTimer,
-                createClientBootStrap(KeyMapping.getKeyMapping(), false));
-    }
-
     private synchronized Future<BGPSessionImpl> createClient(final InetSocketAddress remoteAddress,
             final int retryTimer, final Bootstrap clientBootStrap) {
         final BGPClientSessionNegotiatorFactory snf = new BGPClientSessionNegotiatorFactory(this.bgpPeerRegistry);
index f9a7b9a4f6b78f512ac02b3bf17662ac85f27c3f..03713c5776bca099e99074472c5c117df413623b 100755 (executable)
@@ -7,50 +7,21 @@
  */
 package org.opendaylight.protocol.bgp.rib.impl.spi;
 
-import com.google.common.base.Optional;
 import io.netty.channel.ChannelFuture;
 import io.netty.util.concurrent.Future;
 import java.net.InetSocketAddress;
-import org.opendaylight.protocol.bgp.rib.spi.BGPSession;
 import org.opendaylight.protocol.concepts.KeyMapping;
 
 /**
  * Dispatcher class for creating BGP clients.
  */
-public interface BGPDispatcher{
-
-    /**
-     * Creates BGP client.
-     *
-     * @param remoteAddress remote Peer address
-     * @param retryTimer Retry timer
-     * @return Future promising a client session
-     */
-    @Deprecated
-    Future<? extends BGPSession> createClient(InetSocketAddress remoteAddress, int retryTimer);
-
+public interface BGPDispatcher {
     /**
      * Creates Reconnecting client.
      *
      * @param remoteAddress remote Peer Address
-     * @param retryTimer Retry timer
-     * @param keys for TCPMD5
-     * @return Future promising a client session
-     */
-    @Deprecated
-    default Future<Void> createReconnectingClient(InetSocketAddress remoteAddress, int retryTimer, Optional<KeyMapping> keys) {
-        if(keys.isPresent()) {
-            return createReconnectingClient(remoteAddress, retryTimer, keys.get());
-        }
-        return createReconnectingClient(remoteAddress, retryTimer, KeyMapping.getKeyMapping());
-    }
-
-    /**
-     * Creates Reconnecting client.
-     *
-     * @param remoteAddress remote Peer Address
-     * @param retryTimer Retry timer
-     * @param keys for TCPMD5
+     * @param retryTimer    Retry timer
+     * @param keys          for TCPMD5
      * @return Future promising a client session
      */
     Future<Void> createReconnectingClient(InetSocketAddress remoteAddress, int retryTimer, KeyMapping keys);
@@ -59,13 +30,13 @@ public interface BGPDispatcher{
      * Create new BGP server to accept incoming bgp connections (bound to provided socket localAddress).
      *
      * @param localAddress Peer localAddress
-     *
      * @return ChannelFuture promising a client session
      */
     ChannelFuture createServer(InetSocketAddress localAddress);
 
     /**
      * Return BGP Peer Registry
+     *
      * @return BGPPeerRegistry
      */
     BGPPeerRegistry getBGPPeerRegistry();