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, hashCode
getLocation, getName, getProviderId, getUri, getUserMetadata, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, getProviderId, getTags, getType
getLocation, getUri, getUserMetadata
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)
public List<? extends Processor> getProcessors()
getProcessors
in interface Hardware
public int getRam()
public List<? extends Volume> getVolumes()
getVolumes
in interface Hardware
@Nullable public String getHypervisor()
getHypervisor
in interface Hardware
public boolean isDeprecated()
isDeprecated
in interface Hardware
public int compareTo(ResourceMetadata<ComputeType> that)
compareTo
in interface Comparable<ResourceMetadata<ComputeType>>
compareTo
in class ComputeMetadataImpl
protected com.google.common.base.Objects.ToStringHelper string()
string
in class ComputeMetadataImpl
public com.google.common.base.Predicate<Image> supportsImage()
supportsImage
in interface Hardware
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.