Package org.apache.solr.metrics
Enum SolrMetricManager.ResolutionStrategy
java.lang.Object
java.lang.Enum<SolrMetricManager.ResolutionStrategy>
org.apache.solr.metrics.SolrMetricManager.ResolutionStrategy
- All Implemented Interfaces:
Serializable,Comparable<SolrMetricManager.ResolutionStrategy>
- Enclosing class:
SolrMetricManager
public static enum SolrMetricManager.ResolutionStrategy
extends Enum<SolrMetricManager.ResolutionStrategy>
Potential conflict resolution strategies when attempting to register a new metric that already
exists
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static SolrMetricManager.ResolutionStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IGNORE
The existing metric will be kept and the new metric will be ignored. If no metric exists, then the new metric will be registered. -
REPLACE
The existing metric will be removed and replaced with the new metric -
ERROR
An exception will be thrown. This is the default implementation behavior.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-