org.jclouds.compute.domain.internal
Class HardwareImpl
java.lang.Object
org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>
org.jclouds.compute.domain.internal.ComputeMetadataImpl
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
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)
|
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)
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.