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>
-
Field Summary
Fields inherited from class org.jclouds.compute.domain.internal.ComputeMetadataImpl
tags
-
Constructor Summary
ConstructorsConstructorDescriptionHardwareImpl
(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
Modifier and TypeMethodDescriptionint
compareTo
(ResourceMetadata<ComputeType> that) Amount of virtual or physical processors providedint
getRam()
Amount of RAM provided in MB (256M, 1740)volumes associated with this.boolean
True if usage of the hardware profile is now discouraged.protected com.google.common.base.MoreObjects.ToStringHelper
string()
com.google.common.base.Predicate
<Image> 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 Details
-
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 Details
-
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
volumes associated with this.- Specified by:
getVolumes
in interfaceHardware
-
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
- 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
Determines whether this size can run an image.- Specified by:
supportsImage
in interfaceHardware
-