mirror of https://github.com/apache/jclouds.git
Merge pull request #218 from richardcloudsoft/cloudstack-capacity
Capacity domain object was missing a toString() implementation
This commit is contained in:
commit
ffa9dd688f
|
@ -229,6 +229,20 @@ public class Capacity implements Comparable<Capacity> {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "[" +
|
||||||
|
"podId=" + podId +
|
||||||
|
", podName='" + podName + '\'' +
|
||||||
|
", zoneId=" + zoneId +
|
||||||
|
", zoneName='" + zoneName + '\'' +
|
||||||
|
", type=" + type +
|
||||||
|
", capacityUsed=" + capacityUsed +
|
||||||
|
", capacityTotal=" + capacityTotal +
|
||||||
|
", percentUsed=" + percentUsed +
|
||||||
|
']';
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(Capacity other) {
|
public int compareTo(Capacity other) {
|
||||||
int comparison = Long.valueOf(this.zoneId).compareTo(other.zoneId);
|
int comparison = Long.valueOf(this.zoneId).compareTo(other.zoneId);
|
||||||
|
|
Loading…
Reference in New Issue