Class GitSshdSession

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

    public class GitSshdSession
    extends AbstractLoggingBean
    implements org.eclipse.jgit.transport.RemoteSession
    • 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 ClientSession createClientSession​(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​(ClientSession sessionInstance)
      • disconnectClient

        protected void disconnectClient​(SshClient clientInstance)
      • createClient

        protected SshClient createClient()