diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2019-04-17 14:46:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-17 14:46:20 +0000 |
commit | 48d3624fdf93d88f299e8b116ec7ee9c254450d7 (patch) | |
tree | c92c4cb9da0b573c733aab28774053a72d544343 /openstack-client/src | |
parent | cd6fc330f5d635d177f44329583c1d7770787d75 (diff) | |
parent | e0066e40064a3de2a0b691baf24d4409992e11f6 (diff) |
Merge "changed attribute names OpenStackClient.java"
Diffstat (limited to 'openstack-client/src')
-rw-r--r-- | openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackClient.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackClient.java b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackClient.java index 23ee8dc..a111975 100644 --- a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackClient.java +++ b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackClient.java @@ -29,38 +29,38 @@ public class OpenStackClient { protected OpenStackTokenProvider tokenProvider; - protected static int AUTHENTICATION_RETRIES = 1; + protected static int authenticationRetries = 1; protected OpenStackClientConnector connector; protected Properties properties = new Properties(); - protected static OpenStackClientConnector DEFAULT_CONNECTOR; + protected static OpenStackClientConnector defaultConnector; static { ServiceLoader<OpenStackClientConnector> connectorLoader; connectorLoader = ServiceLoader.load(OpenStackClientConnector.class); for (OpenStackClientConnector clientConnector : connectorLoader) { - DEFAULT_CONNECTOR = clientConnector; + defaultConnector = clientConnector; break; } } public OpenStackClient(String endpoint) { this.endpoint = endpoint; - this.connector = DEFAULT_CONNECTOR; + this.connector = defaultConnector; } public OpenStackClient(String endpoint, OpenStackClientConnector connector) { this.endpoint = endpoint; - this.connector = (connector == null) ? DEFAULT_CONNECTOR : connector; + this.connector = (connector == null) ? defaultConnector : connector; } public <T> OpenStackResponse request(OpenStackRequest<T> request) { OpenStackResponseException authException = null; - for (int i = 0; i <= AUTHENTICATION_RETRIES; i++) { + for (int i = 0; i <= authenticationRetries; i++) { request.endpoint(endpoint); if (tokenProvider != null) { |