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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ProcessBuildervoidDisconnects the remote session.Creates a new remoteProcessto execute the given command.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, waitMethods inherited from interface org.eclipse.jgit.transport.RemoteSession
getFtpChannel
-
Constructor Details
-
ExtSession
private ExtSession()
-
-
Method Details
-
exec
Description 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 Process exec(String command, Map<String, 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
-
disconnect
public void disconnect()Description copied from interface:RemoteSessionDisconnects the remote session.- Specified by:
disconnectin interfaceRemoteSession
-