T
- The type of sessions that are created when connecting to the hostpublic abstract class AbstractHost<T extends AbstractSession<?>> extends Object
Modifier and Type | Field and Description |
---|---|
private ConnectionInfo |
ci |
private static org.slf4j.Logger |
logger |
Modifier | Constructor and Description |
---|---|
protected |
AbstractHost(ConnectionInfo ci) |
Modifier and Type | Method and Description |
---|---|
abstract T |
connect(int timeout)
Connect to the cluster.
|
ConnectionInfo |
getConnectionInfo()
Get the connection information for this host.
|
protected net.schmizz.sshj.SSHClient |
internalConnect(int timeout) |
String |
toString() |
private static final org.slf4j.Logger logger
private final ConnectionInfo ci
protected AbstractHost(ConnectionInfo ci)
public ConnectionInfo getConnectionInfo()
public abstract T connect(int timeout)
AbstractSession.close()
the session after use.timeout
- Timeout in seconds for the connection to be establishedprotected net.schmizz.sshj.SSHClient internalConnect(int timeout)