public interface RemoteSession
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnects the remote session.
|
Process |
exec(String commandName,
int timeout)
Creates a new remote
Process to execute the given command. |
default FtpChannel |
getFtpChannel()
Obtains an
FtpChannel for performing FTP operations over this
RemoteSession. |
Process exec(String commandName, int timeout) throws IOException
Process to execute the given command. The
returned process's streams exist and are connected, and execution of the
process is already started.commandName - command to executetimeout - timeout value, in seconds, for creating the remote processIOException - 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).default FtpChannel getFtpChannel()
FtpChannel for performing FTP operations over this
RemoteSession. The default implementation returns null.FtpChannelvoid disconnect()
Copyright © 2021 Eclipse JGit Project. All rights reserved.