Package com.yahoo.config.provision
Enum NodeResources.StorageType
- java.lang.Object
-
- java.lang.Enum<NodeResources.StorageType>
-
- com.yahoo.config.provision.NodeResources.StorageType
-
- All Implemented Interfaces:
Serializable
,Comparable<NodeResources.StorageType>
- Enclosing class:
- NodeResources
public static enum NodeResources.StorageType extends Enum<NodeResources.StorageType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
compare(NodeResources.StorageType a, NodeResources.StorageType b)
Compares storage type by cost: Remote is cheaper, and therefore before.boolean
compatibleWith(NodeResources.StorageType other)
static NodeResources.StorageType
getDefault()
boolean
isDefault()
static NodeResources.StorageType
valueOf(String name)
Returns the enum constant of this type with the specified name.static NodeResources.StorageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
remote
public static final NodeResources.StorageType remote
-
local
public static final NodeResources.StorageType local
-
any
public static final NodeResources.StorageType any
-
-
Method Detail
-
values
public static NodeResources.StorageType[] 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.StorageType c : NodeResources.StorageType.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.StorageType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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()
-
-