public class SSHEnvironmentFactory extends java.lang.Object implements EnvironmentFactory<Environment>
SSHEnvironment.
This factory uses Configuration to specify environment configuration.
Configuration uses following fields:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XML_HOSTS_FIELD |
static java.lang.String |
XML_PRIVATE_KEY_FIELD |
static java.lang.String |
XML_REMOTE_DIR_FIELD |
static java.lang.String |
XML_USERNAME_FIELD |
| Constructor and Description |
|---|
SSHEnvironmentFactory(org.apache.commons.configuration.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Environment> |
create() |
void |
destroy(java.util.Collection<Environment> envs)
Cleans up everything created by create.
|
public static final java.lang.String XML_HOSTS_FIELD
public static final java.lang.String XML_USERNAME_FIELD
public static final java.lang.String XML_PRIVATE_KEY_FIELD
public static final java.lang.String XML_REMOTE_DIR_FIELD
public SSHEnvironmentFactory(org.apache.commons.configuration.Configuration config)
public java.util.Collection<Environment> create() throws java.io.IOException
create in interface EnvironmentFactory<Environment>java.io.IOExceptionpublic void destroy(java.util.Collection<Environment> envs)
EnvironmentFactorydestroy in interface EnvironmentFactory<Environment>envs - - environments created by create.