Class Flavor

  • All Implemented Interfaces:
    Comparable<Resource>

    public class Flavor
    extends Resource
    A flavor is an available hardware configuration for a server. Each flavor has a unique combination of disk space and memory capacity.
    See Also:
    • Method Detail

      • getRam

        public int getRam()
      • getDisk

        public int getDisk()
      • getVcpus

        public int getVcpus()
      • getSwap

        public com.google.common.base.Optional<String> getSwap()
      • getRxtxFactor

        public com.google.common.base.Optional<Double> getRxtxFactor()
      • getEphemeral

        public com.google.common.base.Optional<Integer> getEphemeral()
        Retrieves ephemeral disk space in GB

        NOTE: This field is only present if the Flavor Extra Data extension is installed (alias "OS-FLV-EXT-DATA").

        See Also:
        org.jclouds.openstack.nova.v2_0.features.ExtensionApi#getExtensionByAlias, ExtensionNamespaces.FLAVOR_EXTRA_DATA
      • string

        protected com.google.common.base.MoreObjects.ToStringHelper string()
        Overrides:
        string in class Resource