Package org.eclipse.jgit.transport
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 java.lang.Object implements RemoteSession2
-
-
Constructor Summary
Constructors Modifier Constructor Description privateExtSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.ProcessBuildercreateProcess(java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment)voiddisconnect()Disconnects the remote session.java.lang.Processexec(java.lang.String command, int timeout)Creates a new remoteProcessto execute the given command.java.lang.Processexec(java.lang.String command, java.util.Map<java.lang.String,java.lang.String> environment, int timeout)Creates a new remoteProcessto execute the given command.-
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
-
-
-
-
Method Detail
-
exec
public java.lang.Process exec(java.lang.String command, int timeout) throws TransportExceptionDescription copied from interface:RemoteSessionCreates a new remoteProcessto execute the given command. The returned process's streams exist and are connected, and execution of the process is already started.- Specified by:
execin interfaceRemoteSession- Parameters:
command- command to executetimeout- timeout value, in seconds, for creating the remote process- Returns:
- a new remote process, already started
- Throws:
TransportException
-
exec
public java.lang.Process exec(java.lang.String command, java.util.Map<java.lang.String,java.lang.String> environment, int timeout) throws TransportExceptionDescription copied from interface:RemoteSession2Creates a new remoteProcessto execute the given command. The returned process's streams exist and are connected, and execution of the process is already started.- Specified by:
execin interfaceRemoteSession2- Parameters:
command- command to executeenvironment- environment variables to pass ontimeout- 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, java.util.Map<java.lang.String,java.lang.String> environment)
-
disconnect
public void disconnect()
Description copied from interface:RemoteSessionDisconnects the remote session.- Specified by:
disconnectin interfaceRemoteSession
-
-