Merge pull request #218 from richardcloudsoft/cloudstack-capacity

Capacity domain object was missing a toString() implementation
This commit is contained in:
Adrian Cole 2011-12-06 07:05:08 -08:00
commit ffa9dd688f
1 changed files with 14 additions and 0 deletions

View File

@ -229,6 +229,20 @@ public class Capacity implements Comparable<Capacity> {
return result;
}
@Override
public String toString() {
return "[" +
"podId=" + podId +
", podName='" + podName + '\'' +
", zoneId=" + zoneId +
", zoneName='" + zoneName + '\'' +
", type=" + type +
", capacityUsed=" + capacityUsed +
", capacityTotal=" + capacityTotal +
", percentUsed=" + percentUsed +
']';
}
@Override
public int compareTo(Capacity other) {
int comparison = Long.valueOf(this.zoneId).compareTo(other.zoneId);