Class NettyIoSession

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.CloseableUtils.IoBaseCloseable
org.apache.sshd.common.util.CloseableUtils.AbstractCloseable
org.aesh.terminal.ssh.netty.NettyIoSession
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.common.Closeable, org.apache.sshd.common.io.IoSession

public class NettyIoSession extends org.apache.sshd.common.util.CloseableUtils.AbstractCloseable implements org.apache.sshd.common.io.IoSession
Author:
Julien Viet
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable

    org.apache.sshd.common.util.CloseableUtils.AbstractCloseable.State
  • Field Summary

    Fields inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable

    lock, state

    Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
    NettyIoSession(NettyIoAcceptor acceptor, org.apache.sshd.common.io.IoHandler handler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.sshd.common.future.CloseFuture
     
    protected void
     
    void
     
     
    long
     
     
     
    org.apache.sshd.common.io.IoService
     
    void
    schedule(Runnable task, long delay, TimeUnit unit)
     
    setAttribute(Object key, Object value)
     
    org.apache.sshd.common.io.IoWriteFuture
    write(org.apache.sshd.common.util.buffer.Buffer buffer)
     

    Methods inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable

    builder, close, isClosed, isClosing, preClose

    Methods inherited from class org.apache.sshd.common.util.CloseableUtils.IoBaseCloseable

    close, isOpen

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Channel

    close, isOpen

    Methods inherited from interface org.apache.sshd.common.Closeable

    isClosed, isClosing

    Methods inherited from interface org.apache.sshd.common.io.IoSession

    close
  • Constructor Details

    • NettyIoSession

      public NettyIoSession(NettyIoAcceptor acceptor, org.apache.sshd.common.io.IoHandler handler)
  • Method Details

    • execute

      public void execute(Runnable task)
    • schedule

      public void schedule(Runnable task, long delay, TimeUnit unit)
    • getId

      public long getId()
      Specified by:
      getId in interface org.apache.sshd.common.io.IoSession
    • getAttribute

      public Object getAttribute(Object key)
      Specified by:
      getAttribute in interface org.apache.sshd.common.io.IoSession
    • setAttribute

      public Object setAttribute(Object key, Object value)
      Specified by:
      setAttribute in interface org.apache.sshd.common.io.IoSession
    • getRemoteAddress

      public SocketAddress getRemoteAddress()
      Specified by:
      getRemoteAddress in interface org.apache.sshd.common.io.IoSession
    • getLocalAddress

      public SocketAddress getLocalAddress()
      Specified by:
      getLocalAddress in interface org.apache.sshd.common.io.IoSession
    • write

      public org.apache.sshd.common.io.IoWriteFuture write(org.apache.sshd.common.util.buffer.Buffer buffer)
      Specified by:
      write in interface org.apache.sshd.common.io.IoSession
    • getService

      public org.apache.sshd.common.io.IoService getService()
      Specified by:
      getService in interface org.apache.sshd.common.io.IoSession
    • doCloseGracefully

      protected org.apache.sshd.common.future.CloseFuture doCloseGracefully()
      Overrides:
      doCloseGracefully in class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable
    • doCloseImmediately

      protected void doCloseImmediately()
      Overrides:
      doCloseImmediately in class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable