public class OpenStackPoolDriverConfig extends Object
OpenStackPoolDriver, which declares how
to authenticate and what OpenStack region to operate against.
The OpenStackPoolDriver can be configured to use either use version 2
or version 3 of the identity HTTP API.| Constructor and Description |
|---|
OpenStackPoolDriverConfig(AuthConfig auth,
String region,
Boolean assignFloatingIp)
Creates a new
OpenStackPoolDriverConfig. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AuthConfig |
getAuth()
Returns a description of how to authenticate with the OpenStack identity
service (Keystone).
|
String |
getRegion()
Returns the particular OpenStack region (out of the ones available in
Keystone's service catalog) to connect to.
|
int |
hashCode() |
Boolean |
isAssignFloatingIp()
Returns
true if a floating IP address should be allocated to
launched servers. |
String |
toString() |
void |
validate()
Performs basic validation of this configuration.
|
public OpenStackPoolDriverConfig(AuthConfig auth, String region, Boolean assignFloatingIp)
OpenStackPoolDriverConfig.auth - Declares how to authenticate with the OpenStack identity
service (Keystone).region - The particular OpenStack region (out of the ones available in
Keystone's service catalog) to connect to. For example,
RegionOne.assignFloatingIp - Set to true if a floating IP address should be
allocated to launched servers. Default: true.public AuthConfig getAuth()
public String getRegion()
RegionOne
.public Boolean isAssignFloatingIp()
true if a floating IP address should be allocated to
launched servers.public void validate()
throws IllegalArgumentException
IllegalArgumentException on failure to validate the
configuration.IllegalArgumentExceptionCopyright © 2011–2015 elastisys. All rights reserved.