Package org.jclouds.sshj
Class SSHClientConnection.Builder
- java.lang.Object
-
- org.jclouds.sshj.SSHClientConnection.Builder
-
- Enclosing class:
- SSHClientConnection
public static class SSHClientConnection.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.base.Optional<com.jcraft.jsch.agentproxy.Connector>
agentConnector
protected int
connectTimeout
protected com.google.common.net.HostAndPort
hostAndPort
protected LoginCredentials
loginCredentials
protected int
sessionTimeout
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSHClientConnection.Builder
agentConnector(com.google.common.base.Optional<com.jcraft.jsch.agentproxy.Connector> agentConnector)
SSHClientConnection
build()
SSHClientConnection.Builder
connectTimeout(int connectTimeout)
protected SSHClientConnection.Builder
fromSSHClientConnection(SSHClientConnection in)
SSHClientConnection.Builder
hostAndPort(com.google.common.net.HostAndPort hostAndPort)
SSHClientConnection.Builder
loginCredentials(LoginCredentials loginCredentials)
SSHClientConnection.Builder
sessionTimeout(int sessionTimeout)
-
-
-
Field Detail
-
hostAndPort
protected com.google.common.net.HostAndPort hostAndPort
-
loginCredentials
protected LoginCredentials loginCredentials
-
connectTimeout
protected int connectTimeout
-
sessionTimeout
protected int sessionTimeout
-
agentConnector
protected com.google.common.base.Optional<com.jcraft.jsch.agentproxy.Connector> agentConnector
-
-
Method Detail
-
hostAndPort
public SSHClientConnection.Builder hostAndPort(com.google.common.net.HostAndPort hostAndPort)
- See Also:
SSHClientConnection.getHostAndPort()
-
loginCredentials
public SSHClientConnection.Builder loginCredentials(LoginCredentials loginCredentials)
-
connectTimeout
public SSHClientConnection.Builder connectTimeout(int connectTimeout)
- See Also:
SSHClientConnection.getConnectTimeout()
-
sessionTimeout
public SSHClientConnection.Builder sessionTimeout(int sessionTimeout)
- See Also:
SSHClientConnection.getConnectTimeout()
-
agentConnector
public SSHClientConnection.Builder agentConnector(com.google.common.base.Optional<com.jcraft.jsch.agentproxy.Connector> agentConnector)
- See Also:
SSHClientConnection.getAgentConnector()
-
build
public SSHClientConnection build()
-
fromSSHClientConnection
protected SSHClientConnection.Builder fromSSHClientConnection(SSHClientConnection in)
-
-