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:
Comparable<ResourceMetadata<ComputeType>>
,ComputeMetadata
,Hardware
,ResourceMetadata<ComputeType>
public class HardwareImpl extends ComputeMetadataImpl implements Hardware
-
-
Field Summary
-
Fields inherited from class org.jclouds.compute.domain.internal.ComputeMetadataImpl
tags
-
-
Constructor Summary
Constructors Constructor Description 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, String hypervisor, boolean deprecated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ResourceMetadata<ComputeType> that)
String
getHypervisor()
List<? extends Processor>
getProcessors()
Amount of virtual or physical processors providedint
getRam()
Amount of RAM provided in MB (256M, 1740)List<? extends Volume>
getVolumes()
volumes associated with this.boolean
isDeprecated()
True if usage of the hardware profile is now discouraged.protected com.google.common.base.MoreObjects.ToStringHelper
string()
com.google.common.base.Predicate<Image>
supportsImage()
Determines whether this size can run an image.-
Methods inherited from class org.jclouds.compute.domain.internal.ComputeMetadataImpl
addComputeToStringSuffix, computeToStringPrefix, equals, getId, getTags, getType, hashCode
-
Methods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
getLocation, getName, getProviderId, getUri, getUserMetadata, toString
-
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, @Nullable String hypervisor, boolean deprecated)
-
-
Method Detail
-
getProcessors
public List<? extends Processor> getProcessors()
Amount of virtual or physical processors provided- Specified by:
getProcessors
in interfaceHardware
-
getRam
public int getRam()
Amount of RAM provided in MB (256M, 1740)
-
getVolumes
public List<? extends Volume> getVolumes()
volumes associated with this.- Specified by:
getVolumes
in interfaceHardware
-
getHypervisor
@Nullable public String getHypervisor()
- Specified by:
getHypervisor
in interfaceHardware
- Returns:
- hypervisor type, if this is a virtual machine and the type is known
-
isDeprecated
public boolean isDeprecated()
True if usage of the hardware profile is now discouraged.- Specified by:
isDeprecated
in interfaceHardware
-
compareTo
public int compareTo(ResourceMetadata<ComputeType> that)
- Specified by:
compareTo
in interfaceComparable<ResourceMetadata<ComputeType>>
- Overrides:
compareTo
in classComputeMetadataImpl
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classComputeMetadataImpl
-
supportsImage
public com.google.common.base.Predicate<Image> supportsImage()
Determines whether this size can run an image.- Specified by:
supportsImage
in interfaceHardware
-
-