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 AbstractLoggingBean implements org.eclipse.jgit.transport.RemoteSession
-
-
Field Summary
Fields Modifier and Type Field Description private SshClientclientprivate ClientSessionsession-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description GitSshdSession(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.util.FS fs, int tms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SshClientcreateClient()protected ClientSessioncreateClientSession(SshClient clientInstance, java.lang.String host, java.lang.String username, int port, java.lang.String... passwords)voiddisconnect()protected voiddisconnectClient(SshClient clientInstance)protected voiddisconnectSession(ClientSession sessionInstance)java.lang.Processexec(java.lang.String commandName, int timeout)-
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
-
-
-
-
Field Detail
-
client
private final SshClient client
-
session
private final ClientSession session
-
-
Constructor Detail
-
GitSshdSession
public GitSshdSession(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider, org.eclipse.jgit.util.FS fs, int tms) throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
-
Method Detail
-
createClientSession
protected ClientSession createClientSession(SshClient clientInstance, java.lang.String host, java.lang.String username, int port, java.lang.String... passwords) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
exec
public java.lang.Process exec(java.lang.String commandName, int timeout) throws java.io.IOException- Specified by:
execin interfaceorg.eclipse.jgit.transport.RemoteSession- Throws:
java.io.IOException
-
disconnect
public void disconnect()
- Specified by:
disconnectin interfaceorg.eclipse.jgit.transport.RemoteSession
-
disconnectSession
protected void disconnectSession(ClientSession sessionInstance)
-
disconnectClient
protected void disconnectClient(SshClient clientInstance)
-
createClient
protected SshClient createClient()
-
-