Enum Class NodeResources.DiskSpeed

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

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

  • Method Details

    • values

      public static NodeResources.DiskSpeed[] 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.DiskSpeed 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.DiskSpeed a, NodeResources.DiskSpeed b)
      Compares disk speeds by cost: Slower is cheaper, and therefore before. Any can be slow and therefore costs the same as slow.
    • compatibleWith

      public boolean compatibleWith(NodeResources.DiskSpeed other)
    • isDefault

      public boolean isDefault()
    • getDefault

      public static NodeResources.DiskSpeed getDefault()