Enum Class NodeResources.StorageType

java.lang.Object
java.lang.Enum<NodeResources.StorageType>
com.yahoo.config.provision.NodeResources.StorageType
All Implemented Interfaces:
Serializable, Comparable<NodeResources.StorageType>, Constable
Enclosing class:
NodeResources

public static enum NodeResources.StorageType extends Enum<NodeResources.StorageType>
  • Enum Constant Details

  • Method Details

    • values

      public static NodeResources.StorageType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NodeResources.StorageType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • compare

      public static int compare(NodeResources.StorageType a, NodeResources.StorageType b)
      Compares storage type by cost: Remote is cheaper, and therefore before. Any can be remote and therefore costs the same as remote.
    • compatibleWith

      public boolean compatibleWith(NodeResources.StorageType other)
    • isDefault

      public boolean isDefault()
    • getDefault

      public static NodeResources.StorageType getDefault()