public class SshdSession extends Object implements RemoteSession
RemoteSession based on Apache MINA sshd.| Modifier and Type | Method and Description |
|---|---|
void |
addCloseListener(SessionCloseListener listener)
Adds a
SessionCloseListener to this session. |
void |
disconnect() |
Process |
exec(String commandName,
int timeout) |
FtpChannel |
getFtpChannel()
Obtain an
FtpChannel to perform SFTP operations in this
SshdSession. |
void |
removeCloseListener(SessionCloseListener listener)
Removes the given
listener; has no effect if the listener is not
currently registered with this session. |
public void addCloseListener(@NonNull SessionCloseListener listener)
SessionCloseListener to this session. Has no effect if the
given listener is already registered with this session.listener - to addpublic void removeCloseListener(@NonNull SessionCloseListener listener)
listener; has no effect if the listener is not
currently registered with this session.listener - to removepublic Process exec(String commandName, int timeout) throws IOException
exec in interface RemoteSessionIOException@NonNull public FtpChannel getFtpChannel()
FtpChannel to perform SFTP operations in this
SshdSession.getFtpChannel in interface RemoteSessionpublic void disconnect()
disconnect in interface RemoteSessionCopyright © 2020 Eclipse JGit Project. All rights reserved.