Package org.eclipse.jgit.transport
Class TransportGitSsh.ExtSession
- java.lang.Object
-
- org.eclipse.jgit.transport.TransportGitSsh.ExtSession
-
- All Implemented Interfaces:
RemoteSession
- Enclosing class:
- TransportGitSsh
private class TransportGitSsh.ExtSession extends java.lang.Object implements RemoteSession
-
-
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)
void
disconnect()
Disconnect the remote sessionjava.lang.Process
exec(java.lang.String command, int timeout)
Generate a new remote process 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
Generate a new remote process to execute the given command. This function should also start execution and may need to create the streams prior to execution.- Specified by:
exec
in interfaceRemoteSession
- Parameters:
command
- command to executetimeout
- timeout value, in seconds, for command execution- Returns:
- a new remote process
- Throws:
TransportException
-
createProcess
private java.lang.ProcessBuilder createProcess(java.util.List<java.lang.String> args)
-
disconnect
public void disconnect()
Description copied from interface:RemoteSession
Disconnect the remote session- Specified by:
disconnect
in interfaceRemoteSession
-
-