|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xebialabs.deployit.hostsession.HostSessionFactory
public class HostSessionFactory
Factory for host sessions.
| Field Summary | |
|---|---|
static int |
DEFAULT_SSH_PORT
The default port to use for SSH host sessions |
| Constructor Summary | |
|---|---|
HostSessionFactory()
|
|
| Method Summary | |
|---|---|
static HostSession |
getHostSession(Host host)
Returns an HostSession based on the information in a Host CI. |
static HostSession |
getHostSession(OperatingSystemFamily osFamily,
HostAccessMethod accessMethod,
java.lang.String address,
int port,
java.lang.String username,
java.lang.String password,
java.lang.String sudoUsername,
java.lang.String temporaryDirectoryPath)
Creates a host session for the host. |
static HostSession |
getHostSession(OperatingSystemFamily osFamily,
HostAccessMethod accessMethod,
java.lang.String hostSpecification,
java.lang.String username,
java.lang.String password,
java.lang.String sudoUsername,
java.lang.String temporaryDirectoryPath)
Creates a host session for the host. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_SSH_PORT
| Constructor Detail |
|---|
public HostSessionFactory()
| Method Detail |
|---|
public static HostSession getHostSession(OperatingSystemFamily osFamily,
HostAccessMethod accessMethod,
java.lang.String address,
int port,
java.lang.String username,
java.lang.String password,
java.lang.String sudoUsername,
java.lang.String temporaryDirectoryPath)
osFamily - the OS family of the hostaccessMethod - the way the host is accessed, e.g. local access, SSH w/ SFTP, SSH w/ SCP, SSH w/ SUDO, etc.address - the address of the hostport - the port on the host to connect withusername - the username to connect to the hostpassword - the password to connect to the hostsudoUsername - the username to sudo totemporaryDirectoryPath - the path of the directory in which to store temporary files
java.lang.IllegalStateException - if no suitable session can be created.
public static HostSession getHostSession(OperatingSystemFamily osFamily,
HostAccessMethod accessMethod,
java.lang.String hostSpecification,
java.lang.String username,
java.lang.String password,
java.lang.String sudoUsername,
java.lang.String temporaryDirectoryPath)
osFamily - the OS family of the hostaccessMethod - the way the host is accessed, e.g. local access, SSH w/ SFTP, SSH w/ SCP, SSH w/ SUDO, etc.hostSpecification - the host to connect with, specified as a host address optionally followed by a colon and a port numberusername - the username to connect to the hostpassword - the password to connect to the hostsudoUsername - the username to sudo totemporaryDirectoryPath - the path of the directory in which to store temporary files
java.lang.IllegalArgumentException - if the host specification contains an error
java.lang.IllegalStateException - if no suitable session can be created.public static HostSession getHostSession(Host host)
host - the host from which to take the details.
java.lang.IllegalArgumentException - if the host specification contains an error
java.lang.IllegalStateException - if no suitable session can be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||