| Modifier and Type | Field and Description |
|---|---|
protected VagrantDriver |
vagrantDriver |
protected java.lang.String |
vagrantIp |
protected java.lang.String |
vagrantVm |
| Constructor and Description |
|---|
VagrantCloudHost(java.lang.String vagrantVm,
java.lang.String vagrantIp,
VagrantDriver vagrantDriver) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHostName()
Returns the name or IP address of the host to connect to.
|
int |
getPort(int port)
Translates a target port number to the port number to connect to.
|
void |
setup()
Ensures the host is available.
|
void |
teardown()
Releases the host resources.
|
protected java.lang.String vagrantIp
protected java.lang.String vagrantVm
protected VagrantDriver vagrantDriver
public VagrantCloudHost(java.lang.String vagrantVm,
java.lang.String vagrantIp,
VagrantDriver vagrantDriver)
public void setup()
CloudHostpublic void teardown()
CloudHostpublic java.lang.String getHostName()
CloudHostCloudHost.setup() has been
invoked.getHostName in interface CloudHostpublic int getPort(int port)
CloudHostCloudHost.setup() has
been invoked.