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 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, java.util.Map<java.lang.String,java.lang.String> environment)
void
disconnect()
Disconnects the remote session.java.lang.Process
exec(java.lang.String command, int timeout)
Creates a new remoteProcess
to execute the given command.java.lang.Process
exec(java.lang.String command, java.util.Map<java.lang.String,java.lang.String> environment, int timeout)
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
-
-
-
-
Method Detail
-
exec
public java.lang.Process exec(java.lang.String command, int timeout) throws TransportException
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 java.lang.Process exec(java.lang.String command, java.util.Map<java.lang.String,java.lang.String> environment, int timeout) throws TransportException
Description 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
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:RemoteSession
Disconnects the remote session.- Specified by:
disconnect
in interfaceRemoteSession
-
-