Class GitSshdSession

  • All Implemented Interfaces:
    org.eclipse.jgit.transport.RemoteSession

    public class GitSshdSession
    extends org.apache.sshd.common.util.logging.AbstractLoggingBean
    implements org.eclipse.jgit.transport.RemoteSession
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.sshd.client.SshClient client  
      private org.apache.sshd.client.session.ClientSession session  
      • Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        log
    • Constructor Summary

      Constructors 
      Constructor Description
      GitSshdSession​(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.util.FS fs, int tms)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.sshd.client.SshClient createClient()  
      protected org.apache.sshd.client.session.ClientSession createClientSession​(org.apache.sshd.client.SshClient clientInstance, java.lang.String host, java.lang.String username, int port, java.lang.String... passwords)  
      void disconnect()  
      protected void disconnectClient​(org.apache.sshd.client.SshClient clientInstance)  
      protected void disconnectSession​(org.apache.sshd.client.session.ClientSession sessionInstance)  
      java.lang.Process exec​(java.lang.String commandName, int timeout)  
      • Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.jgit.transport.RemoteSession

        getFtpChannel
    • Field Detail

      • client

        private final org.apache.sshd.client.SshClient client
      • session

        private final org.apache.sshd.client.session.ClientSession session
    • Constructor Detail

      • GitSshdSession

        public GitSshdSession​(org.eclipse.jgit.transport.URIish uri,
                              org.eclipse.jgit.transport.CredentialsProvider credentialsProvider,
                              org.eclipse.jgit.util.FS fs,
                              int tms)
                       throws java.io.IOException,
                              java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
    • Method Detail

      • createClientSession

        protected org.apache.sshd.client.session.ClientSession createClientSession​(org.apache.sshd.client.SshClient clientInstance,
                                                                                   java.lang.String host,
                                                                                   java.lang.String username,
                                                                                   int port,
                                                                                   java.lang.String... passwords)
                                                                            throws java.io.IOException,
                                                                                   java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • exec

        public java.lang.Process exec​(java.lang.String commandName,
                                      int timeout)
                               throws java.io.IOException
        Specified by:
        exec in interface org.eclipse.jgit.transport.RemoteSession
        Throws:
        java.io.IOException
      • disconnect

        public void disconnect()
        Specified by:
        disconnect in interface org.eclipse.jgit.transport.RemoteSession
      • disconnectSession

        protected void disconnectSession​(org.apache.sshd.client.session.ClientSession sessionInstance)
      • disconnectClient

        protected void disconnectClient​(org.apache.sshd.client.SshClient clientInstance)
      • createClient

        protected org.apache.sshd.client.SshClient createClient()