org.jclouds.glesys.domain
Class ResourceStatus

java.lang.Object
  extended by org.jclouds.glesys.domain.ResourceStatus

public class ResourceStatus
extends Object

Detailed information on usage

Author:
Adam Lowe
See Also:
ServerStatus

Nested Class Summary
static class ResourceStatus.Builder<T extends ResourceStatus.Builder<T>>
           
 
Constructor Summary
protected ResourceStatus(double usage, double max, String unit)
           
 
Method Summary
static ResourceStatus.Builder<?> builder()
           
 boolean equals(Object obj)
           
 double getMax()
           
 String getUnit()
           
 double getUsage()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 ResourceStatus.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceStatus

@ConstructorProperties(value={"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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.