org.jclouds.glesys.domain
Class ResourceUsage
java.lang.Object
org.jclouds.glesys.domain.ResourceUsage
public class ResourceUsage
- extends Object
Detailed information on usage
- Author:
- Adam Lowe
- See Also:
ServerStatus
ResourceUsage
public ResourceUsage(double usage,
double max,
String unit)
builder
public static ResourceUsage.Builder builder()
getUsage
public double getUsage()
- Returns:
- the usage in #unit
getMax
public double getMax()
- Returns:
- the max usage in #unit
getUnit
public String getUnit()
- Returns:
- the unit used
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.