org.jclouds.glesys.domain
Class ResourceUsage

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

public class ResourceUsage
extends Object

Detailed information on usage

Author:
Adam Lowe
See Also:
ServerStatus

Nested Class Summary
static class ResourceUsage.Builder
           
 
Constructor Summary
ResourceUsage(double usage, double max, String unit)
           
 
Method Summary
static ResourceUsage.Builder builder()
           
 boolean equals(Object object)
           
 double getMax()
           
 String getUnit()
           
 double getUsage()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceUsage

public ResourceUsage(double usage,
                     double max,
                     String unit)
Method Detail

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.