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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SolrMetricManager.ResolutionStrategy
valueOf(String name)
Returns 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 Detail
-
IGNORE
public static final SolrMetricManager.ResolutionStrategy 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
public static final SolrMetricManager.ResolutionStrategy REPLACE
The existing metric will be removed and replaced with the new metric
-
ERROR
public static final SolrMetricManager.ResolutionStrategy ERROR
An exception will be thrown. This is the default implementation behavior.
-
-
Method Detail
-
values
public static SolrMetricManager.ResolutionStrategy[] 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 (SolrMetricManager.ResolutionStrategy c : SolrMetricManager.ResolutionStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SolrMetricManager.ResolutionStrategy 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
-
-