import com.google.common.annotations.Beta;
import io.netty.channel.ChannelHandlerContext;
+import io.netty.channel.ChannelPipeline;
import java.io.IOException;
import org.opendaylight.netconf.shaded.sshd.client.ClientFactoryManager;
import org.opendaylight.netconf.shaded.sshd.client.session.ClientSessionImpl;
}
return channel;
}
+
+ @Override
+ public NettyPipelineAwareChannelSubsystem createSubsystemChannel(final String subsystem,
+ final ChannelPipeline pipeline) throws IOException {
+ final NettyPipelineAwareChannelSubsystem channel = new NettyPipelineAwareChannelSubsystem(subsystem, pipeline);
+ final ConnectionService service = getConnectionService();
+ final long id = service.registerChannel(channel);
+ if (log.isDebugEnabled()) {
+ log.debug("createSubsystemChannel({})[{}] created id={}", this, channel.getSubsystem(), id);
+ }
+ return channel;
+ }
}