java.lang.Object
org.eclipse.jgit.transport.sshd.SshdSession
- All Implemented Interfaces:
RemoteSession,RemoteSession2
An implementation of
RemoteSession based on Apache MINA sshd.- Since:
- 5.2
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(SessionCloseListener listener) Adds aSessionCloseListenerto this session.voidObtain 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 interfaceRemoteSession- Throws:
IOException
-
exec
public Process exec(String commandName, Map<String, String> environment, int timeout) throws IOException- Specified by:
execin interfaceRemoteSession2- Throws:
IOException
-
getFtpChannel
Obtain anFtpChannelto perform SFTP operations in thisSshdSession.- Specified by:
getFtpChannelin interfaceRemoteSession
-
disconnect
public void disconnect()- Specified by:
disconnectin interfaceRemoteSession
-