Top Description Methods
org.eclipse.jgit.transport

public Interface RemoteSession

Known Direct Subinterfaces
org.eclipse.jgit.transport.RemoteSession2
Imports
java.io.IOException

An abstraction of a remote "session" for executing remote commands.

Method Summary

Modifier and TypeMethod and Description
public void
disconnect()

Disconnects the remote session.

public Process

Returns:

a new remote process, already started
exec
(String
command to execute
commandName
,
int
timeout value, in seconds, for creating the remote process
timeout
)

Creates a new remote Process to execute the given command.

public default FtpChannel

Returns:

the FtpChannel
getFtpChannel
()

Obtains an FtpChannel for performing FTP operations over this RemoteSession.

Method Detail

disconnectback to summary
public void disconnect()

Disconnects the remote session.

execback to summary
public Process exec(String commandName, int timeout) throws IOException

Creates a new remote Process to execute the given command. The returned process's streams exist and are connected, and execution of the process is already started.

Parameters
commandName:String

command to execute

timeout:int

timeout value, in seconds, for creating the remote process

Returns:Process

a new remote process, already started

Exceptions
IOException:
may be thrown in several cases. For example, on problems opening input or output streams or on problems connecting or communicating with the remote host. For the latter two cases, a TransportException may be thrown (a subclass of java.io.IOException).
getFtpChannelback to summary
public default FtpChannel getFtpChannel()

Obtains an FtpChannel for performing FTP operations over this RemoteSession. The default implementation returns null.

Returns:FtpChannel

the FtpChannel

Since
5.2