Package com.yahoo.config.provision
Enum ClusterSpec.Type
- java.lang.Object
-
- java.lang.Enum<ClusterSpec.Type>
-
- com.yahoo.config.provision.ClusterSpec.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ClusterSpec.Type>
- Enclosing class:
- ClusterSpec
public static enum ClusterSpec.Type extends Enum<ClusterSpec.Type>
A cluster type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClusterSpec.Type
from(String typeName)
boolean
isContainer()
Returns whether this runs a container clusterboolean
isContent()
Returns whether this runs a content clusterstatic ClusterSpec.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClusterSpec.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
admin
public static final ClusterSpec.Type admin
-
container
public static final ClusterSpec.Type container
-
content
public static final ClusterSpec.Type content
-
combined
public static final ClusterSpec.Type combined
-
-
Method Detail
-
values
public static ClusterSpec.Type[] 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 (ClusterSpec.Type c : ClusterSpec.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusterSpec.Type 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
-
isContent
public boolean isContent()
Returns whether this runs a content cluster
-
isContainer
public boolean isContainer()
Returns whether this runs a container cluster
-
from
public static ClusterSpec.Type from(String typeName)
-
-