Class SshSessionPool


  • public class SshSessionPool
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​SshHost> myPool  
      private java.util.Timer myTimer  
      private static long PURGE_INTERVAL  
    • Constructor Summary

      Constructors 
      Constructor Description
      SshSessionPool()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SshSession openSession​(java.lang.String host, int port, java.lang.String userName, char[] privateKey, char[] passphrase, char[] password, com.trilead.ssh2.auth.AgentProxy agentProxy, com.trilead.ssh2.ServerHostKeyVerifier verifier, int connectTimeout, int readTimeout)  
      void shutdown()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • myPool

        private java.util.Map<java.lang.String,​SshHost> myPool
      • myTimer

        private java.util.Timer myTimer
    • Constructor Detail

      • SshSessionPool

        public SshSessionPool()
    • Method Detail

      • shutdown

        public void shutdown()
      • openSession

        public SshSession openSession​(java.lang.String host,
                                      int port,
                                      java.lang.String userName,
                                      char[] privateKey,
                                      char[] passphrase,
                                      char[] password,
                                      com.trilead.ssh2.auth.AgentProxy agentProxy,
                                      com.trilead.ssh2.ServerHostKeyVerifier verifier,
                                      int connectTimeout,
                                      int readTimeout)
                               throws java.io.IOException
        Throws:
        java.io.IOException