java.lang.Object
org.eclipse.jgit.transport.sshd.SshdSession
- All Implemented Interfaces:
org.eclipse.jgit.transport.RemoteSession,org.eclipse.jgit.transport.RemoteSession2
An implementation of
RemoteSession based on Apache MINA sshd.- Since:
- 5.2
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(SessionCloseListener listener) Adds aSessionCloseListenerto this session.voidorg.eclipse.jgit.transport.FtpChannelObtain anFtpChannelto perform SFTP operations in thisSshdSession.voidremoveCloseListener(SessionCloseListener listener) Removes the givenlistener; has no effect if the listener is not currently registered with this session.
-
Method Details
-
addCloseListener
Adds aSessionCloseListenerto this session. Has no effect if the givenlisteneris already registered with this session.- Parameters:
listener- to add
-
removeCloseListener
Removes the givenlistener; has no effect if the listener is not currently registered with this session.- Parameters:
listener- to remove
-
exec
- Specified by:
execin interfaceorg.eclipse.jgit.transport.RemoteSession- Throws:
IOException
-
exec
public Process exec(String commandName, Map<String, String> environment, int timeout) throws IOException- Specified by:
execin interfaceorg.eclipse.jgit.transport.RemoteSession2- Throws:
IOException
-
getFtpChannel
@NonNull public org.eclipse.jgit.transport.FtpChannel getFtpChannel()Obtain anFtpChannelto perform SFTP operations in thisSshdSession.- Specified by:
getFtpChannelin interfaceorg.eclipse.jgit.transport.RemoteSession
-
disconnect
public void disconnect()- Specified by:
disconnectin interfaceorg.eclipse.jgit.transport.RemoteSession
-