Package org.jclouds.glesys.domain
Class ResourceStatus
- java.lang.Object
-
- org.jclouds.glesys.domain.ResourceStatus
-
public class ResourceStatus extends Object
Detailed information on usage- See Also:
ServerStatus
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceStatus.Builder<T extends ResourceStatus.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResourceStatus(double usage, double max, String unit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceStatus.Builder<?>
builder()
boolean
equals(Object obj)
double
getMax()
String
getUnit()
double
getUsage()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
ResourceStatus.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
ResourceStatus
@ConstructorProperties({"usage","max","unit"}) protected ResourceStatus(double usage, double max, String unit)
-
-
Method Detail
-
builder
public static ResourceStatus.Builder<?> builder()
-
toBuilder
public ResourceStatus.Builder<?> toBuilder()
-
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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-