org.jclouds.compute.domain.internal
Class HardwareImpl

java.lang.Object
  extended by org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>
      extended by org.jclouds.compute.domain.internal.ComputeMetadataImpl
          extended by org.jclouds.compute.domain.internal.HardwareImpl
All Implemented Interfaces:
Serializable, Comparable<ResourceMetadata<ComputeType>>, ComputeMetadata, Hardware, ResourceMetadata<ComputeType>

public class HardwareImpl
extends ComputeMetadataImpl
implements Hardware

Author:
Adrian Cole
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jclouds.compute.domain.internal.ComputeMetadataImpl
tags
 
Constructor Summary
HardwareImpl(String providerId, String name, String id, Location location, URI uri, Map<String,String> userMetadata, Set<String> tags, Iterable<? extends Processor> processors, int ram, Iterable<? extends Volume> volumes, com.google.common.base.Predicate<Image> supportsImage)
           
 
Method Summary
 int compareTo(ResourceMetadata<ComputeType> that)
          
 List<? extends Processor> getProcessors()
          Amount of virtual or physical processors provided
 int getRam()
          Amount of RAM provided in MB (256M, 1740)
 List<? extends Volume> getVolumes()
          volumes associated with this.
 com.google.common.base.Predicate<Image> supportsImage()
          Determines whether this size can run an image.
 String toString()
          
 
Methods inherited from class org.jclouds.compute.domain.internal.ComputeMetadataImpl
equals, getId, getTags, getType, hashCode
 
Methods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
getLocation, getName, getProviderId, getUri, getUserMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.compute.domain.ComputeMetadata
getId, getName, getProviderId, getTags, getType
 
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation, getUri, getUserMetadata
 

Constructor Detail

HardwareImpl

public HardwareImpl(String providerId,
                    String name,
                    String id,
                    @Nullable
                    Location location,
                    URI uri,
                    Map<String,String> userMetadata,
                    Set<String> tags,
                    Iterable<? extends Processor> processors,
                    int ram,
                    Iterable<? extends Volume> volumes,
                    com.google.common.base.Predicate<Image> supportsImage)
Method Detail

getProcessors

public List<? extends Processor> getProcessors()
Amount of virtual or physical processors provided

Specified by:
getProcessors in interface Hardware

getRam

public int getRam()
Amount of RAM provided in MB (256M, 1740)

Specified by:
getRam in interface Hardware

getVolumes

public List<? extends Volume> getVolumes()
volumes associated with this.

Specified by:
getVolumes in interface Hardware

compareTo

public int compareTo(ResourceMetadata<ComputeType> that)

Specified by:
compareTo in interface Comparable<ResourceMetadata<ComputeType>>
Overrides:
compareTo in class ResourceMetadataImpl<ComputeType>

toString

public String toString()

Overrides:
toString in class ResourceMetadataImpl<ComputeType>

supportsImage

public com.google.common.base.Predicate<Image> supportsImage()
Determines whether this size can run an image.

Specified by:
supportsImage in interface Hardware


Copyright © 2009-2011 jclouds. All Rights Reserved.