Package net.shibboleth.idp.metrics.impl
Class IdPGaugeSet
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- net.shibboleth.idp.metrics.impl.IdPGaugeSet
-
- All Implemented Interfaces:
com.codahale.metrics.Metric,com.codahale.metrics.MetricFilter,com.codahale.metrics.MetricSet,Aware,ApplicationContextAware
public class IdPGaugeSet extends ApplicationObjectSupport implements com.codahale.metrics.MetricSet, com.codahale.metrics.MetricFilter
A set of gauges for core system information.
-
-
Field Summary
Fields Modifier and Type Field Description private static StringDEFAULT_METRIC_NAMEDefault prefix for metrics.private Map<String,com.codahale.metrics.Metric>gaugesThe map of gauges.-
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
-
-
Constructor Summary
Constructors Constructor Description IdPGaugeSet()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,com.codahale.metrics.Metric>getMetrics()booleanmatches(String name, com.codahale.metrics.Metric metric)voidsetExposedProperties(Set<String> properties)Set the names of properties to expose as metrics.-
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
-
-
-
-
Field Detail
-
DEFAULT_METRIC_NAME
@Nonnull @NotEmpty private static final String DEFAULT_METRIC_NAME
Default prefix for metrics.- See Also:
- Constant Field Values
-
gauges
@Nonnull @NonnullElements private final Map<String,com.codahale.metrics.Metric> gauges
The map of gauges.
-
-
Method Detail
-
setExposedProperties
public void setExposedProperties(@Nullable @NonnullElements Set<String> properties)
Set the names of properties to expose as metrics.- Parameters:
properties- properties to expose
-
getMetrics
public Map<String,com.codahale.metrics.Metric> getMetrics()
- Specified by:
getMetricsin interfacecom.codahale.metrics.MetricSet
-
matches
public boolean matches(String name, com.codahale.metrics.Metric metric)
- Specified by:
matchesin interfacecom.codahale.metrics.MetricFilter
-
-