Clean up StressClient a bit
[netconf.git] / netconf / tools / netconf-testtool / src / main / java / org / opendaylight / netconf / test / tool / client / stress / ConfigurableClientDispatcher.java
index 22a70e5fb1c90fbc73d582727e27c68950cd4c7a..c2bf229803ce24bf0ed32be43801c191a3c63e2e 100644 (file)
@@ -5,25 +5,22 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.netconf.test.tool.client.stress;
 
 import io.netty.channel.EventLoopGroup;
 import io.netty.util.Timer;
 import java.util.Set;
-import org.apache.sshd.client.SshClient;
-import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.netconf.client.NetconfClientDispatcherImpl;
 import org.opendaylight.netconf.client.NetconfClientSessionNegotiatorFactory;
 import org.opendaylight.netconf.client.conf.NetconfClientConfiguration;
 
+@Deprecated
 public final class ConfigurableClientDispatcher extends NetconfClientDispatcherImpl {
-
     private final Set<String> capabilities;
 
     private ConfigurableClientDispatcher(final EventLoopGroup bossGroup, final EventLoopGroup workerGroup,
-            final Timer timer, final Set<String> capabilities, @Nullable final SshClient sshClient) {
-        super(bossGroup, workerGroup, timer, sshClient);
+            final Timer timer, final Set<String> capabilities) {
+        super(bossGroup, workerGroup, timer);
         this.capabilities = capabilities;
     }
 
@@ -31,36 +28,36 @@ public final class ConfigurableClientDispatcher extends NetconfClientDispatcherI
      * EXI + chunked framing.
      */
     public static ConfigurableClientDispatcher createChunkedExi(final EventLoopGroup bossGroup,
-            final EventLoopGroup workerGroup, final Timer timer, @Nullable final SshClient sshClient) {
+            final EventLoopGroup workerGroup, final Timer timer) {
         return new ConfigurableClientDispatcher(bossGroup, workerGroup, timer,
-            NetconfClientSessionNegotiatorFactory.EXI_CLIENT_CAPABILITIES, sshClient);
+            NetconfClientSessionNegotiatorFactory.EXI_CLIENT_CAPABILITIES);
     }
 
     /**
      * EXI + ]]gt;]]gt; framing.
      */
     public static ConfigurableClientDispatcher createLegacyExi(final EventLoopGroup bossGroup,
-            final EventLoopGroup workerGroup, final Timer timer, @Nullable final SshClient sshClient) {
+            final EventLoopGroup workerGroup, final Timer timer) {
         return new ConfigurableClientDispatcher(bossGroup, workerGroup, timer,
-            NetconfClientSessionNegotiatorFactory.LEGACY_EXI_CLIENT_CAPABILITIES, sshClient);
+            NetconfClientSessionNegotiatorFactory.LEGACY_EXI_CLIENT_CAPABILITIES);
     }
 
     /**
      * Chunked framing.
      */
     public static ConfigurableClientDispatcher createChunked(final EventLoopGroup bossGroup,
-            final EventLoopGroup workerGroup, final Timer timer, @Nullable final SshClient sshClient) {
+            final EventLoopGroup workerGroup, final Timer timer) {
         return new ConfigurableClientDispatcher(bossGroup, workerGroup, timer,
-            NetconfClientSessionNegotiatorFactory.DEFAULT_CLIENT_CAPABILITIES, sshClient);
+            NetconfClientSessionNegotiatorFactory.DEFAULT_CLIENT_CAPABILITIES);
     }
 
     /**
      * ]]gt;]]gt; framing.
      */
     public static ConfigurableClientDispatcher createLegacy(final EventLoopGroup bossGroup,
-            final EventLoopGroup workerGroup, final Timer timer, @Nullable final SshClient sshClient) {
+            final EventLoopGroup workerGroup, final Timer timer) {
         return new ConfigurableClientDispatcher(bossGroup, workerGroup, timer,
-            NetconfClientSessionNegotiatorFactory.LEGACY_FRAMING_CLIENT_CAPABILITIES, sshClient);
+            NetconfClientSessionNegotiatorFactory.LEGACY_FRAMING_CLIENT_CAPABILITIES);
     }
 
     @Override