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 ProcessBuilder
void
Disconnects the remote session.Creates a new remoteProcess
to execute the given command.Creates a new remoteProcess
to 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
-
Constructor Details
-
ExtSession
private ExtSession()
-
-
Method Details
-
exec
Description copied from interface:RemoteSession
Creates a new remoteProcess
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 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:RemoteSession2
Creates a new remoteProcess
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 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:RemoteSession
Disconnects the remote session.- Specified by:
disconnect
in interfaceRemoteSession
-