Enum NodeMetric.Registry
- java.lang.Object
-
- java.lang.Enum<NodeMetric.Registry>
-
- org.apache.solr.cluster.placement.NodeMetric.Registry
-
- All Implemented Interfaces:
Serializable
,Comparable<NodeMetric.Registry>
- Enclosing interface:
- NodeMetric<T>
public static enum NodeMetric.Registry extends Enum<NodeMetric.Registry>
Registry options for node metrics.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SOLR_JETTY
corresponds to solr.jettySOLR_JVM
corresponds to solr.jvmSOLR_NODE
corresponds to solr.nodeUNSPECIFIED
In case when the registry name is not relevant (eg.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodeMetric.Registry
valueOf(String name)
Returns the enum constant of this type with the specified name.static NodeMetric.Registry[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOLR_NODE
public static final NodeMetric.Registry SOLR_NODE
corresponds to solr.node
-
SOLR_JVM
public static final NodeMetric.Registry SOLR_JVM
corresponds to solr.jvm
-
SOLR_JETTY
public static final NodeMetric.Registry SOLR_JETTY
corresponds to solr.jetty
-
UNSPECIFIED
public static final NodeMetric.Registry UNSPECIFIED
In case when the registry name is not relevant (eg. a fully-qualified metric key was provided as the metric name).
-
-
Method Detail
-
values
public static NodeMetric.Registry[] 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 (NodeMetric.Registry c : NodeMetric.Registry.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeMetric.Registry 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
-
-