com.google.gerrit.sshd

Class SshDaemon

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  SshDaemon.SshSessionBackend 
      • 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.SshServer

        commandFactory, DEFAULT_SSH_SERVER_FACTORY, gssAuthenticator, host, passwordAuthenticator, port, publickeyAuthenticator, sessionFactory, shellFactory, subsystemFactories, userAuthFactories
      • Fields inherited from class org.apache.sshd.common.AbstractFactoryManager

        agentFactory, channelFactories, cipherFactories, compressionFactories, executor, fileSystemFactory, globalRequestHandlers, ioServiceFactory, ioServiceFactoryFactory, keyExchangeFactories, keyPairProvider, macFactories, properties, randomFactory, serviceFactories, sessionTimeoutListener, shutdownExecutor, signatureFactories, tcpipForwarderFactory, tcpipForwardingFilter, timeoutListenerFuture, version
      • Fields inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable

        closeFuture, lock, state
      • Fields inherited from interface org.apache.sshd.server.ServerFactoryManager

        AUTH_METHODS, COMMAND_EXIT_TIMEOUT, MAX_AUTH_REQUESTS, MAX_CONCURRENT_SESSIONS, MODULI_URL, REKEY_BYTES_LIMIT, REKEY_TIME_LIMIT, SERVER_IDENTIFICATION, WELCOME_BANNER
      • Fields inherited from interface org.apache.sshd.common.FactoryManager

        AUTH_TIMEOUT, CHANNEL_CLOSE_TIMEOUT, DEFAULT_NIO_WORKERS, DISCONNECT_TIMEOUT, IDLE_TIMEOUT, MAX_PACKET_SIZE, NIO_WORKERS, SOCKET_BACKLOG, SOCKET_KEEPALIVE, SOCKET_LINGER, SOCKET_RCVBUF, SOCKET_REUSEADDR, SOCKET_SNDBUF, TCP_NODELAY, WINDOW_SIZE
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected void checkConfig() 
      java.util.List<com.jcraft.jsch.HostKey> getHostKeys() 
      org.apache.sshd.common.io.IoAcceptor getIoAcceptor() 
      void start() 
      void stop() 
      • Methods inherited from class org.apache.sshd.SshServer

        createAcceptor, createSessionFactory, getActiveSessions, getCommandFactory, getGSSAuthenticator, getHost, getInnerCloseable, getPasswordAuthenticator, getPort, getPublickeyAuthenticator, getSessionFactory, getShellFactory, getSubsystemFactories, getUserAuthFactories, main, open, setCommandFactory, setGSSAuthenticator, setHost, setPasswordAuthenticator, setPort, setPublickeyAuthenticator, setSessionFactory, setShellFactory, setSubsystemFactories, setTcpipForwardingFilter, setUpDefaultServer, setUserAuthFactories, stop, toString
      • Methods inherited from class org.apache.sshd.common.AbstractFactoryManager

        createSessionTimeoutListener, getAgentFactory, getChannelFactories, getCipherFactories, getCompressionFactories, getFileSystemFactory, getGlobalRequestHandlers, getIoServiceFactory, getIoServiceFactoryFactory, getKeyExchangeFactories, getKeyPairProvider, getMacFactories, getNioWorkers, getProperties, getRandomFactory, getScheduledExecutorService, getServiceFactories, getSignatureFactories, getTcpipForwarderFactory, getTcpipForwardingFilter, getVersion, loadVersion, removeSessionTimeout, setAgentFactory, setChannelFactories, setCipherFactories, setCompressionFactories, setFileSystemFactory, setGlobalRequestHandlers, setIoServiceFactoryFactory, setKeyExchangeFactories, setKeyPairProvider, setMacFactories, setNioWorkers, setProperties, setRandomFactory, setScheduledExecutorService, setScheduledExecutorService, setServiceFactories, setSignatureFactories, setTcpipForwarderFactory, setupSessionTimeout, stopSessionTimeoutListener
      • Methods inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractInnerCloseable

        doCloseGracefully, doCloseImmediately
      • Methods inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable

        builder, close, isClosed, isClosing, preClose
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.sshd.common.FactoryManager

        getAgentFactory, getChannelFactories, getCipherFactories, getCompressionFactories, getFileSystemFactory, getGlobalRequestHandlers, getIoServiceFactory, getKeyExchangeFactories, getKeyPairProvider, getMacFactories, getProperties, getRandomFactory, getScheduledExecutorService, getServiceFactories, getSignatureFactories, getTcpipForwarderFactory, getTcpipForwardingFilter, getVersion
      • Methods inherited from interface org.apache.sshd.common.Closeable

        close, isClosed, isClosing
    • Method Detail

      • getHostKeys

        public java.util.List<com.jcraft.jsch.HostKey> getHostKeys()
        Specified by:
        getHostKeys in interface SshInfo
      • getIoAcceptor

        public org.apache.sshd.common.io.IoAcceptor getIoAcceptor()
      • start

        public void start()
        Specified by:
        start in interface com.google.gerrit.extensions.events.LifecycleListener
        Overrides:
        start in class org.apache.sshd.SshServer
      • stop

        public void stop()
        Specified by:
        stop in interface com.google.gerrit.extensions.events.LifecycleListener
        Overrides:
        stop in class org.apache.sshd.SshServer
      • checkConfig

        protected void checkConfig()
        Overrides:
        checkConfig in class org.apache.sshd.SshServer