* 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;
}
* 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