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 TypeMethodDescriptionintcompareTo(ResourceMetadata<ComputeType> that) Amount of virtual or physical processors providedintgetRam()Amount of RAM provided in MB (256M, 1740)volumes associated with this.booleanTrue if usage of the hardware profile is now discouraged.protected com.google.common.base.MoreObjects.ToStringHelperstring()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, hashCodeMethods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
getLocation, getName, getProviderId, getUri, getUserMetadata, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jclouds.compute.domain.ComputeMetadata
getId, getName, getProviderId, getTags, getTypeMethods 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:
getProcessorsin interfaceHardware
-
getRam
public int getRam()Amount of RAM provided in MB (256M, 1740) -
getVolumes
volumes associated with this.- Specified by:
getVolumesin interfaceHardware
-
getHypervisor
- Specified by:
getHypervisorin 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:
isDeprecatedin interfaceHardware
-
compareTo
- Specified by:
compareToin interfaceComparable<ResourceMetadata<ComputeType>>- Overrides:
compareToin classComputeMetadataImpl
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()- Overrides:
stringin classComputeMetadataImpl
-
supportsImage
Determines whether this size can run an image.- Specified by:
supportsImagein interfaceHardware
-