org.apache.ivy.plugins.repository.ssh

Class SshCache.Entry

private class SshCache.Entry extends Object

Constructor Summary
Entry(Session newSession, String newUser, String newHost, int newPort)
Method Summary
ChannelSftpgetChannelSftp()
StringgetHost()
intgetPort()
StringgetUser()
voidreleaseChannelSftp()
remove channelSftp and disconnect if necessary
voidsetChannelSftp(ChannelSftp newChannel)
attach an sftp channel to this cache entry

Constructor Detail

Entry

public Entry(Session newSession, String newUser, String newHost, int newPort)

Method Detail

getChannelSftp

public ChannelSftp getChannelSftp()

Returns: the attached sftp channel

getHost

public String getHost()

Returns: the host

getPort

public int getPort()

Returns: the port

getUser

public String getUser()

Returns: the user

releaseChannelSftp

public void releaseChannelSftp()
remove channelSftp and disconnect if necessary

setChannelSftp

public void setChannelSftp(ChannelSftp newChannel)
attach an sftp channel to this cache entry

Parameters: channelSftp to attach