Class TransportGitSsh.ExtSession

java.lang.Object
org.eclipse.jgit.transport.TransportGitSsh.ExtSession
All Implemented Interfaces:
RemoteSession, RemoteSession2
Enclosing class:
TransportGitSsh

private class TransportGitSsh.ExtSession extends Object implements RemoteSession2
  • Constructor Details

    • ExtSession

      private ExtSession()
  • Method Details

    • exec

      public Process exec(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
    • exec

      public Process exec(String command, Map<String,String> environment, int timeout) throws TransportException
      Description copied from interface: RemoteSession2
      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 RemoteSession2
      Parameters:
      command - command to execute
      environment - environment variables to pass on
      timeout - timeout value, in seconds, for creating the remote process
      Returns:
      a new remote process, already started
      Throws:
      TransportException
    • createProcess

      private ProcessBuilder createProcess(List<String> args, Map<String,String> environment)
    • disconnect

      public void disconnect()
      Description copied from interface: RemoteSession
      Disconnects the remote session.
      Specified by:
      disconnect in interface RemoteSession