Class TransportGitSsh.ExtSession

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ExtSession()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.ProcessBuilder createProcess​(java.util.List<java.lang.String> args)  
      void disconnect()
      Disconnects the remote session.
      java.lang.Process exec​(java.lang.String command, int timeout)
      Creates a new remote Process to execute the given command.
      • Methods inherited from class java.lang.Object

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

      • ExtSession

        private ExtSession()
    • Method Detail

      • exec

        public java.lang.Process exec​(java.lang.String command,
                                      int timeout)
                               throws TransportException
        Description copied from interface: RemoteSession
        Creates a new remote Process to execute the given command. The returned process's streams exist and are connected, and execution of the process is already started.
        Specified by:
        exec in interface RemoteSession
        Parameters:
        command - command to execute
        timeout - timeout value, in seconds, for creating the remote process
        Returns:
        a new remote process, already started
        Throws:
        TransportException
      • createProcess

        private java.lang.ProcessBuilder createProcess​(java.util.List<java.lang.String> args)