org.jclouds.cloudstack.domain
Class Capacity

java.lang.Object
  extended by org.jclouds.cloudstack.domain.Capacity
All Implemented Interfaces:
Comparable<Capacity>

public class Capacity
extends Object
implements Comparable<Capacity>

Information about a dimension of the capacity

Author:
Richard Downer

Nested Class Summary
static class Capacity.Builder
           
static class Capacity.Type
           
 
Constructor Summary
Capacity(long capacityTotal, long capacityUsed, double percentUsed, long podId, String podName, Capacity.Type type, long zoneId, String zoneName)
           
 
Method Summary
static Capacity.Builder builder()
           
 int compareTo(Capacity other)
           
 boolean equals(Object o)
           
 long getCapacityTotal()
           
 long getCapacityUsed()
           
 double getPercentUsed()
           
 long getPodId()
           
 String getPodName()
           
 Capacity.Type getType()
           
 long getZoneId()
           
 String getZoneName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Capacity

public Capacity(long capacityTotal,
                long capacityUsed,
                double percentUsed,
                long podId,
                String podName,
                Capacity.Type type,
                long zoneId,
                String zoneName)
Method Detail

builder

public static Capacity.Builder builder()

getCapacityTotal

public long getCapacityTotal()

getCapacityUsed

public long getCapacityUsed()

getPercentUsed

public double getPercentUsed()

getPodId

public long getPodId()

getPodName

public String getPodName()

getType

public Capacity.Type getType()

getZoneId

public long getZoneId()

getZoneName

public String getZoneName()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Capacity other)
Specified by:
compareTo in interface Comparable<Capacity>


Copyright © 2009-2012 jclouds. All Rights Reserved.