summaryrefslogtreecommitdiffstats
path: root/ceilometer-client
diff options
context:
space:
mode:
Diffstat (limited to 'ceilometer-client')
-rw-r--r--ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/Ceilometer.java12
-rw-r--r--ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/MetersResource.java21
-rw-r--r--ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/ResourcesResource.java12
3 files changed, 22 insertions, 23 deletions
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 aa089df..6c18858 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
@@ -24,14 +24,14 @@ import com.woorea.openstack.ceilometer.v2.api.ResourcesResource;
public class Ceilometer extends OpenStackClient {
- private final MetersResource METERS;
+ private final MetersResource meters;
- private final ResourcesResource RESOURCES;
+ private final ResourcesResource resources;
public Ceilometer(String endpoint, OpenStackClientConnector connector) {
super(endpoint, connector);
- METERS = new MetersResource(this);
- RESOURCES = new ResourcesResource(this);
+ meters = new MetersResource(this);
+ resources = new ResourcesResource(this);
}
public Ceilometer(String endpoint) {
@@ -40,11 +40,11 @@ public class Ceilometer extends OpenStackClient {
}
public ResourcesResource resources() {
- return RESOURCES;
+ return resources;
}
public MetersResource meters() {
- return METERS;
+ return meters;
}
}
diff --git a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/MetersResource.java b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/MetersResource.java
index df17c82..ae8f085 100644
--- a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/MetersResource.java
+++ b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/MetersResource.java
@@ -18,16 +18,15 @@ package com.woorea.openstack.ceilometer.v2.api;
import com.woorea.openstack.base.client.OpenStackClient;
-import com.woorea.openstack.base.client.OpenStackRequest;
import com.woorea.openstack.ceilometer.QueriableCeilometerCommand;
import com.woorea.openstack.ceilometer.v2.model.Sample;
public class MetersResource {
- private final OpenStackClient CLIENT;
+ private final OpenStackClient client;
public MetersResource(OpenStackClient client) {
- CLIENT = client;
+ this.client = client;
}
public List list() {
@@ -52,30 +51,30 @@ public class MetersResource {
private String name;
+ public Show() {
+
+ }
+
public Show name(String name) {
this.name = name;
return this;
}
- public Show() {
-
- }
-
}
public class Statistics extends QueriableCeilometerCommand<Statistics, java.util.List<Statistics>> {
private String name;
+ public Statistics() {
+
+ }
+
public Statistics name(String name) {
this.name = name;
return this;
}
- public Statistics() {
-
- }
-
}
} \ No newline at end of file
diff --git a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/ResourcesResource.java b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/ResourcesResource.java
index 9d392f7..3fac7b8 100644
--- a/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/ResourcesResource.java
+++ b/ceilometer-client/src/main/java/com/woorea/openstack/ceilometer/v2/api/ResourcesResource.java
@@ -25,10 +25,10 @@ import com.woorea.openstack.ceilometer.v2.model.Resource;
public class ResourcesResource {
- private final OpenStackClient CLIENT;
+ private final OpenStackClient client;
public ResourcesResource(OpenStackClient client) {
- CLIENT = client;
+ this.client = client;
}
public class ResourceList extends QueriableCeilometerCommand<ResourceList, List<Resource>> {
@@ -44,15 +44,15 @@ public class ResourcesResource {
private String id;
+ public ResourceShow(OpenStackClient client) {
+
+ }
+
public ResourceShow id(String id) {
this.id = id;
return this;
}
- public ResourceShow(OpenStackClient client) {
-
- }
-
}
} \ No newline at end of file