public class CloudApiSettings extends Object
OpenStackPoolDriver.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECTION_TIMEOUT
The default timeout in milliseconds until a connection is established.
|
static int |
DEFAULT_SOCKET_TIMEOUT
The default socket timeout (
SO_TIMEOUT) in milliseconds, which is
the timeout for waiting for data or, put differently, a maximum period
inactivity between two consecutive data packets). |
| Constructor and Description |
|---|
CloudApiSettings(com.elastisys.scale.commons.openstack.AuthConfig auth,
String region)
Creates
CloudApiSettings with default timeouts. |
CloudApiSettings(com.elastisys.scale.commons.openstack.AuthConfig auth,
String region,
Integer connectionTimeout,
Integer socketTimeout)
Creates
CloudApiSettings. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.elastisys.scale.commons.openstack.AuthConfig |
getAuth()
Returns a description of how to authenticate with the OpenStack identity
service (Keystone).
|
Integer |
getConnectionTimeout()
The timeout in milliseconds until a connection is established.
|
String |
getRegion()
Returns the particular OpenStack region (out of the ones available in
Keystone's service catalog) to connect to.
|
Integer |
getSocketTimeout()
The socket timeout (
SO_TIMEOUT) in milliseconds, which is the
timeout for waiting for data or, put differently, a maximum period
inactivity between two consecutive data packets. |
int |
hashCode() |
com.elastisys.scale.commons.openstack.ApiAccessConfig |
toApiAccessConfig()
Returns an
ApiAccessConfig that can be used with an
OSClientFactory and corresponds to this CloudApiSettings. |
String |
toString() |
void |
validate()
Performs basic validation of this configuration.
|
public static final int DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_SOCKET_TIMEOUT
SO_TIMEOUT) in milliseconds, which is
the timeout for waiting for data or, put differently, a maximum period
inactivity between two consecutive data packets).public CloudApiSettings(com.elastisys.scale.commons.openstack.AuthConfig auth,
String region)
CloudApiSettings with default timeouts.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.public CloudApiSettings(com.elastisys.scale.commons.openstack.AuthConfig auth,
String region,
Integer connectionTimeout,
Integer socketTimeout)
CloudApiSettings.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.connectionTimeout - The timeout in milliseconds until a connection is established.
May be null. Default:
10000 ms.socketTimeout - The socket timeout (SO_TIMEOUT) in milliseconds, which
is the timeout for waiting for data or, put differently, a
maximum period inactivity between two consecutive data
packets. May be null. Default:
10000 ms.public com.elastisys.scale.commons.openstack.AuthConfig getAuth()
public String getRegion()
RegionOne
.public Integer getConnectionTimeout()
public Integer getSocketTimeout()
SO_TIMEOUT) in milliseconds, which is the
timeout for waiting for data or, put differently, a maximum period
inactivity between two consecutive data packets.public com.elastisys.scale.commons.openstack.ApiAccessConfig toApiAccessConfig()
ApiAccessConfig that can be used with an
OSClientFactory and corresponds to this CloudApiSettings.public void validate()
throws IllegalArgumentException
IllegalArgumentException on failure to validate the
configuration.IllegalArgumentExceptionCopyright © 2011–2017 Elastisys. All rights reserved.