public class SshSessionPool
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,SshHost> |
myPool |
private java.util.Timer |
myTimer |
private static long |
PURGE_INTERVAL |
Constructor and Description |
---|
SshSessionPool() |
Modifier and Type | Method and Description |
---|---|
SshSession |
openSession(java.lang.String host,
int port,
java.lang.String userName,
char[] privateKey,
char[] passphrase,
char[] password,
com.trilead.ssh2.auth.AgentProxy agentProxy,
com.trilead.ssh2.ServerHostKeyVerifier verifier,
int connectTimeout,
int readTimeout) |
void |
shutdown() |
private static final long PURGE_INTERVAL
private java.util.Map<java.lang.String,SshHost> myPool
private java.util.Timer myTimer
public void shutdown()
public SshSession openSession(java.lang.String host, int port, java.lang.String userName, char[] privateKey, char[] passphrase, char[] password, com.trilead.ssh2.auth.AgentProxy agentProxy, com.trilead.ssh2.ServerHostKeyVerifier verifier, int connectTimeout, int readTimeout) throws java.io.IOException
java.io.IOException