From 3f9a0c3183480d150089c0d5a6e507c877f7d121 Mon Sep 17 00:00:00 2001 From: "Smokowski, Steve (ss835w)" Date: Thu, 2 May 2019 09:42:55 -0400 Subject: Enhance Openstack Client Update Openstack Client to support additional fields Updat all formatting issues Issue-ID: SO-1844 Change-Id: I1369e0c18cc25274db8df7e12855a020b8da38da Signed-off-by: Smokowski, Steve (ss835w) --- .../java/com/woorea/openstack/ceilometer/Ceilometer.java | 16 ++++++++-------- .../openstack/ceilometer/QueriableCeilometerCommand.java | 5 ++--- .../openstack/ceilometer/v2/api/MetersResource.java | 2 +- .../openstack/ceilometer/v2/api/ResourcesResource.java | 3 +-- 4 files changed, 12 insertions(+), 14 deletions(-) (limited to 'ceilometer-client/src/main/java') diff --git a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java index 6c18858..654d5c2 100644 --- a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java +++ b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java @@ -23,28 +23,28 @@ import com.woorea.openstack.ceilometer.v2.api.MetersResource; import com.woorea.openstack.ceilometer.v2.api.ResourcesResource; public class Ceilometer extends OpenStackClient { - + private final MetersResource meters; - + private final ResourcesResource resources; - + public Ceilometer(String endpoint, OpenStackClientConnector connector) { super(endpoint, connector); meters = new MetersResource(this); resources = new ResourcesResource(this); } - + public Ceilometer(String endpoint) { this(endpoint, null); - + } - + public ResourcesResource resources() { return resources; } - + public MetersResource meters() { return meters; } - + } diff --git a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/QueriableCeilometerCommand.java b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/QueriableCeilometerCommand.java index d8c0ead..8c9b813 100644 --- a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/QueriableCeilometerCommand.java +++ b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/QueriableCeilometerCommand.java @@ -19,10 +19,9 @@ package com.woorea.openstack.ceilometer; import java.io.Serializable; import java.util.ArrayList; import java.util.List; - import com.woorea.openstack.base.client.OpenStackRequest; -public abstract class QueriableCeilometerCommand extends OpenStackRequest { +public abstract class QueriableCeilometerCommand extends OpenStackRequest { protected List fields = new ArrayList<>(); @@ -61,4 +60,4 @@ public abstract class QueriableCeilometerCommand extends OpenStackRequest