Package com.yahoo.config.provision
Enum NodeResources.DiskSpeed
- java.lang.Object
-
- java.lang.Enum<NodeResources.DiskSpeed>
-
- com.yahoo.config.provision.NodeResources.DiskSpeed
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NodeResources.DiskSpeed>
- Enclosing class:
- NodeResources
public static enum NodeResources.DiskSpeed extends java.lang.Enum<NodeResources.DiskSpeed>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
compare(NodeResources.DiskSpeed a, NodeResources.DiskSpeed b)
Compares disk speeds by cost: Slower is cheaper, and therefore before.boolean
compatibleWith(NodeResources.DiskSpeed other)
static NodeResources.DiskSpeed
getDefault()
boolean
isDefault()
static NodeResources.DiskSpeed
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NodeResources.DiskSpeed[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
fast
public static final NodeResources.DiskSpeed fast
-
slow
public static final NodeResources.DiskSpeed slow
-
any
public static final NodeResources.DiskSpeed any
-
-
Method Detail
-
values
public static NodeResources.DiskSpeed[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NodeResources.DiskSpeed c : NodeResources.DiskSpeed.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeResources.DiskSpeed valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.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()
-
-