public abstract class SSHTunnelManager
extends java.lang.Object
| Constructor and Description |
|---|
SSHTunnelManager() |
| Modifier and Type | Method and Description |
|---|---|
static SSHTunnelManager |
getInstance()
Gets the SSHTunnelManager instance, if it is available.
|
boolean |
isAvailable()
Tests whether the SSHManager is available (i.e.
|
abstract SSHTunnel |
openTunnel(DatabaseProvider pro)
Ensures that a tunnel with the given configuration is open and returns
the local port the tunnel is listening on.
|
static void |
setInstance(SSHTunnelManager mgr)
Sets the SSHTunnelManager instance that should be used for all database
connections that require an ssh tunnel to connect via.
|
public abstract SSHTunnel openTunnel(DatabaseProvider pro) throws java.sql.SQLException
config - the tunnel configurationSSHTunnelException - if the tunnel could not be found (or opened)java.sql.SQLExceptionpublic boolean isAvailable()
getInstance() will return null.public static SSHTunnelManager getInstance()
public static void setInstance(SSHTunnelManager mgr)
the - tunnel manager