Package org.apache.sshd.git.transport
Class GitSshdSession
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.git.transport.GitSshdSession
- All Implemented Interfaces:
org.eclipse.jgit.transport.RemoteSession
public class GitSshdSession
extends org.apache.sshd.common.util.logging.AbstractLoggingBean
implements org.eclipse.jgit.transport.RemoteSession
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.sshd.client.SshClient
private final org.apache.sshd.client.session.ClientSession
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Constructor Summary
ConstructorsConstructorDescriptionGitSshdSession
(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.util.FS fs, int tms) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.sshd.client.SshClient
protected org.apache.sshd.client.session.ClientSession
createClientSession
(org.apache.sshd.client.SshClient clientInstance, String host, String username, int port, String... passwords) void
protected void
disconnectClient
(org.apache.sshd.client.SshClient clientInstance) protected void
disconnectSession
(org.apache.sshd.client.session.ClientSession sessionInstance) Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jgit.transport.RemoteSession
getFtpChannel
-
Field Details
-
client
private final org.apache.sshd.client.SshClient client -
session
private final org.apache.sshd.client.session.ClientSession session
-
-
Constructor Details
-
GitSshdSession
public GitSshdSession(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.util.FS fs, int tms) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
-
Method Details
-
createClientSession
protected org.apache.sshd.client.session.ClientSession createClientSession(org.apache.sshd.client.SshClient clientInstance, String host, String username, int port, String... passwords) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
exec
- Specified by:
exec
in interfaceorg.eclipse.jgit.transport.RemoteSession
- Throws:
IOException
-
disconnect
public void disconnect()- Specified by:
disconnect
in interfaceorg.eclipse.jgit.transport.RemoteSession
-
disconnectSession
protected void disconnectSession(org.apache.sshd.client.session.ClientSession sessionInstance) -
disconnectClient
protected void disconnectClient(org.apache.sshd.client.SshClient clientInstance) -
createClient
protected org.apache.sshd.client.SshClient createClient()
-