|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.plugins.repository.ssh.SshCache
public final class SshCache
a class to cache SSH Connections and Channel for the SSH Repository each session is defined by connecting user / host / port two maps are used to find cache entries one map is using the above keys, the other uses the session itself
Method Summary | |
---|---|
void |
attachChannelSftp(Session session,
ChannelSftp channel)
attaches a channelSftp to an existing session cache entry |
void |
clearSession(Session session)
discardes session entries from the cache |
ChannelSftp |
getChannelSftp(Session session)
retrieves an sftp channel from the cache |
static SshCache |
getInstance()
|
Session |
getSession(java.lang.String host,
int port,
java.lang.String username,
java.lang.String userPassword,
java.io.File pemFile,
java.lang.String pemPassword,
java.io.File passFile)
Gets a session from the cache or establishes a new session if necessary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SshCache getInstance()
public void clearSession(Session session)
session
- to clearpublic ChannelSftp getChannelSftp(Session session) throws java.io.IOException
session
- to connect to
java.io.IOException
public void attachChannelSftp(Session session, ChannelSftp channel)
session
- to attach the channel tochannel
- channel to attachpublic Session getSession(java.lang.String host, int port, java.lang.String username, java.lang.String userPassword, java.io.File pemFile, java.lang.String pemPassword, java.io.File passFile) throws java.io.IOException
host
- to connect toport
- to use for session (-1 == use standard port)username
- for the session to useuserPassword
- to use for authentication (optional)pemFile
- File to use for public key authenticationpemPassword
- to use for accessing the pemFile (optional)passFile
- to store credentials
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |