Package org.restheart.mongodb
Enum MongoServiceConfiguration.METRICS_GATHERING_LEVEL
- java.lang.Object
-
- java.lang.Enum<MongoServiceConfiguration.METRICS_GATHERING_LEVEL>
-
- org.restheart.mongodb.MongoServiceConfiguration.METRICS_GATHERING_LEVEL
-
- All Implemented Interfaces:
Serializable,Comparable<MongoServiceConfiguration.METRICS_GATHERING_LEVEL>
- Enclosing class:
- MongoServiceConfiguration
public static enum MongoServiceConfiguration.METRICS_GATHERING_LEVEL extends Enum<MongoServiceConfiguration.METRICS_GATHERING_LEVEL>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLECTIONgather basic, database, and collection-specific metricsDATABASEgather basic metrics, and also specific per database (but not collection-specific)OFFdo not gather any metricsROOTgather basic metrics (for all databases, but not specific per database)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MongoServiceConfiguration.METRICS_GATHERING_LEVELvalueOf(String name)Returns the enum constant of this type with the specified name.static MongoServiceConfiguration.METRICS_GATHERING_LEVEL[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final MongoServiceConfiguration.METRICS_GATHERING_LEVEL OFF
do not gather any metrics
-
ROOT
public static final MongoServiceConfiguration.METRICS_GATHERING_LEVEL ROOT
gather basic metrics (for all databases, but not specific per database)
-
DATABASE
public static final MongoServiceConfiguration.METRICS_GATHERING_LEVEL DATABASE
gather basic metrics, and also specific per database (but not collection-specific)
-
COLLECTION
public static final MongoServiceConfiguration.METRICS_GATHERING_LEVEL COLLECTION
gather basic, database, and collection-specific metrics
-
-
Method Detail
-
values
public static MongoServiceConfiguration.METRICS_GATHERING_LEVEL[] 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 (MongoServiceConfiguration.METRICS_GATHERING_LEVEL c : MongoServiceConfiguration.METRICS_GATHERING_LEVEL.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MongoServiceConfiguration.METRICS_GATHERING_LEVEL 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
-
-