public class HardwareImpl extends ComputeMetadataImpl implements Hardware
tags| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ResourceMetadata<ComputeType> that) |
String |
getHypervisor() |
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.
|
boolean |
isDeprecated()
True if usage of the hardware profile is now discouraged.
|
protected com.google.common.base.Objects.ToStringHelper |
string() |
com.google.common.base.Predicate<Image> |
supportsImage()
Determines whether this size can run an image.
|
addComputeToStringSuffix, computeToStringPrefix, equals, getId, getTags, getType, hashCodegetLocation, getName, getProviderId, getUri, getUserMetadata, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, getProviderId, getTags, getTypegetLocation, getUri, getUserMetadatapublic 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)
public List<? extends Processor> getProcessors()
getProcessors in interface Hardwarepublic int getRam()
public List<? extends Volume> getVolumes()
getVolumes in interface Hardware@Nullable public String getHypervisor()
getHypervisor in interface Hardwarepublic boolean isDeprecated()
isDeprecated in interface Hardwarepublic int compareTo(ResourceMetadata<ComputeType> that)
compareTo in interface Comparable<ResourceMetadata<ComputeType>>compareTo in class ComputeMetadataImplprotected com.google.common.base.Objects.ToStringHelper string()
string in class ComputeMetadataImplpublic com.google.common.base.Predicate<Image> supportsImage()
supportsImage in interface HardwareCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.