Class GlobalMetricsConfiguration
- java.lang.Object
-
- org.infinispan.configuration.global.GlobalMetricsConfiguration
-
public class GlobalMetricsConfiguration extends Object
Configuration for microprofile metrics. SeeGlobalMetricsConfigurationBuilder
.
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
ACCURATE_SIZE
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
GAUGES
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
HISTOGRAMS
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
NAMES_AS_TAGS
static org.infinispan.commons.configuration.attributes.AttributeDefinition<String>
PREFIX
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accurateSize()
Whether cache sizes should be computedorg.infinispan.commons.configuration.attributes.AttributeSet
attributes()
boolean
enabled()
Metrics are enabled if at least one of the metric types is enabled.boolean
equals(Object o)
boolean
gauges()
Are gauges enabled?int
hashCode()
boolean
histograms()
Are histograms enabled?boolean
namesAsTags()
Put the cache manager and cache name in tags rather then include them in the metric name.String
prefix()
The global prefix to add to all metric names.String
toString()
-
-
-
Field Detail
-
GAUGES
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> GAUGES
-
HISTOGRAMS
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> HISTOGRAMS
-
PREFIX
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> PREFIX
-
NAMES_AS_TAGS
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> NAMES_AS_TAGS
-
ACCURATE_SIZE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> ACCURATE_SIZE
-
-
Method Detail
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
-
enabled
public boolean enabled()
Metrics are enabled if at least one of the metric types is enabled. Seegauges()
,histograms()
.
-
gauges
public boolean gauges()
Are gauges enabled?
-
histograms
public boolean histograms()
Are histograms enabled?
-
prefix
public String prefix()
The global prefix to add to all metric names.
-
namesAsTags
public boolean namesAsTags()
Put the cache manager and cache name in tags rather then include them in the metric name.
-
accurateSize
public boolean accurateSize()
Whether cache sizes should be computed- Returns:
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
-