Class SshCache.Entry
- java.lang.Object
-
- org.apache.ivy.plugins.repository.ssh.SshCache.Entry
-
- Enclosing class:
- SshCache
private class SshCache.Entry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private com.jcraft.jsch.ChannelSftpchannelSftpprivate java.lang.Stringhostprivate intportprivate com.jcraft.jsch.Sessionsessionprivate java.lang.Stringuser
-
Constructor Summary
Constructors Constructor Description Entry(com.jcraft.jsch.Session newSession, java.lang.String newUser, java.lang.String newHost, int newPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.jcraft.jsch.ChannelSftpgetChannelSftp()java.lang.StringgetHost()intgetPort()private com.jcraft.jsch.SessiongetSession()java.lang.StringgetUser()voidreleaseChannelSftp()remove channelSftp and disconnect if necessaryvoidsetChannelSftp(com.jcraft.jsch.ChannelSftp newChannel)attach an sftp channel to this cache entry
-
-
-
Method Detail
-
getHost
public java.lang.String getHost()
- Returns:
- the host
-
getPort
public int getPort()
- Returns:
- the port
-
getUser
public java.lang.String getUser()
- Returns:
- the user
-
setChannelSftp
public void setChannelSftp(com.jcraft.jsch.ChannelSftp newChannel)
attach an sftp channel to this cache entry- Parameters:
newChannel- to attach
-
getChannelSftp
public com.jcraft.jsch.ChannelSftp getChannelSftp()
- Returns:
- the attached sftp channel
-
getSession
private com.jcraft.jsch.Session getSession()
- Returns:
- the session
-
releaseChannelSftp
public void releaseChannelSftp()
remove channelSftp and disconnect if necessary
-
-