Class NodeFlavors

java.lang.Object
com.yahoo.config.provision.NodeFlavors

public class NodeFlavors extends Object
All the flavors configured in this zone (i.e this should be called HostFlavors).
Author:
bratseth
  • Constructor Details

  • Method Details

    • getFlavors

      public List<Flavor> getFlavors()
    • getFlavor

      public Optional<Flavor> getFlavor(String name)
      Returns a flavor by name, or empty if there is no flavor with this name and it cannot be created on the fly.
    • getFlavorOrThrow

      public Flavor getFlavorOrThrow(String flavorName)
      Returns the flavor with the given name or throws an IllegalArgumentException if it does not exist and cannot be created on the fly.
    • exists

      public boolean exists(String flavorName)
      Returns true if this flavor is configured or can be created on the fly
    • toString

      public String toString()
      Overrides:
      toString in class Object