Class SshHost


  • public class SshHost
    extends java.lang.Object
    • Field Detail

      • CONNECTION_INACTIVITY_TIMEOUT

        private static final int CONNECTION_INACTIVITY_TIMEOUT
      • MAX_CONCURRENT_OPENERS

        private static final int MAX_CONCURRENT_OPENERS
      • MAX_SESSIONS_PER_CONNECTION

        private static final int MAX_SESSIONS_PER_CONNECTION
      • myHost

        private java.lang.String myHost
      • myPort

        private int myPort
      • myHostVerifier

        private com.trilead.ssh2.ServerHostKeyVerifier myHostVerifier
      • myPrivateKey

        private char[] myPrivateKey
      • myPassphrase

        private char[] myPassphrase
      • myPassword

        private char[] myPassword
      • myUserName

        private java.lang.String myUserName
      • myAgentProxy

        private com.trilead.ssh2.auth.AgentProxy myAgentProxy
      • myConnectTimeout

        private int myConnectTimeout
      • myIsLocked

        private boolean myIsLocked
      • myIsDisposed

        private boolean myIsDisposed
      • myConnections

        private java.util.List<SshConnection> myConnections
      • myOpenerLock

        private java.lang.Object myOpenerLock
      • myOpenersCount

        private int myOpenersCount
      • myReadTimeout

        private int myReadTimeout
    • Constructor Detail

      • SshHost

        public SshHost​(java.lang.String host,
                       int port)
    • Method Detail

      • setHostVerifier

        public void setHostVerifier​(com.trilead.ssh2.ServerHostKeyVerifier verifier)
      • setConnectionTimeout

        public void setConnectionTimeout​(int timeout)
      • setReadTimeout

        public void setReadTimeout​(int readTimeout)
      • setCredentials

        public void setCredentials​(java.lang.String userName,
                                   char[] key,
                                   char[] passphrase,
                                   char[] password,
                                   com.trilead.ssh2.auth.AgentProxy agentProxy)
      • purge

        public boolean purge()
      • isDisposed

        public boolean isDisposed()
      • setDisposed

        public void setDisposed​(boolean disposed)
      • getKey

        public java.lang.String getKey()
      • lock

        void lock()
      • unlock

        void unlock()
      • openSession

        public SshSession openSession()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • useExistingConnection

        private SshSession useExistingConnection()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • removeOpener

        private void removeOpener()
      • addOpener

        private void addOpener()
      • openConnection

        private SshConnection openConnection()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object