org.jclouds.deltacloud.domain.internal
Class BaseHardwareProperty

java.lang.Object
  extended by org.jclouds.deltacloud.domain.internal.BaseHardwareProperty
All Implemented Interfaces:
HardwareProperty
Direct Known Subclasses:
FixedHardwareProperty, ParameterizedHardwareProperty

public class BaseHardwareProperty
extends Object
implements HardwareProperty

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.deltacloud.domain.HardwareProperty
HardwareProperty.Kind
 
Constructor Summary
BaseHardwareProperty(HardwareProperty.Kind kind, String name, String unit, Object value)
           
 
Method Summary
 boolean equals(Object obj)
           
 HardwareProperty.Kind getKind()
          
 String getName()
          
 String getUnit()
          
 Object getValue()
          
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseHardwareProperty

public BaseHardwareProperty(HardwareProperty.Kind kind,
                            String name,
                            String unit,
                            Object value)
Method Detail

getKind

public HardwareProperty.Kind getKind()

Specified by:
getKind in interface HardwareProperty
Returns:
describes the values to chose from.

getName

public String getName()

Specified by:
getName in interface HardwareProperty
Returns:
the type of the property: e.g. memory or storage

getUnit

public String getUnit()

Specified by:
getUnit in interface HardwareProperty
Returns:
the units in which the value is specified: MB, GB, count or label

getValue

public Object getValue()

Specified by:
getValue in interface HardwareProperty
Returns:
the actual value of the property. It depends on the specified unit: 1024, 2 on x86_64

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.