Package fr.gouv.vitam.common.metrics
Enum VitamMetricsType
- java.lang.Object
-
- java.lang.Enum<VitamMetricsType>
-
- fr.gouv.vitam.common.metrics.VitamMetricsType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VitamMetricsType>
public enum VitamMetricsType extends java.lang.Enum<VitamMetricsType>
Enums to use for the configuration ofVitamMetrics
through theVitamMetricsConfiguration
class.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VitamMetricsType
get(java.lang.String metricTypeName)
Retrieve anVitamMetricsType
given a name.java.lang.String
getElasticsearchIndex()
Return the elasticsearch index of this metric typejava.lang.String
getName()
Return the name of the enum as a Stringstatic VitamMetricsType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VitamMetricsType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REST
public static final VitamMetricsType REST
-
JVM
public static final VitamMetricsType JVM
-
BUSINESS
public static final VitamMetricsType BUSINESS
-
-
Method Detail
-
values
public static VitamMetricsType[] 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 (VitamMetricsType c : VitamMetricsType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VitamMetricsType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
Return the name of the enum as a String- Returns:
- String
-
getElasticsearchIndex
public java.lang.String getElasticsearchIndex()
Return the elasticsearch index of this metric type- Returns:
- String
-
get
public static VitamMetricsType get(java.lang.String metricTypeName) throws java.lang.IllegalArgumentException
Retrieve anVitamMetricsType
given a name. Throws anIllegalArgumentException
if the name doesn't exists.- Parameters:
metricTypeName
-- Returns:
- VitamMetricsType
- Throws:
java.lang.IllegalArgumentException
-
-