Package io.dropwizard.metrics5.jvm
Class GarbageCollectorMetricSet
- java.lang.Object
-
- io.dropwizard.metrics5.jvm.GarbageCollectorMetricSet
-
- All Implemented Interfaces:
io.dropwizard.metrics5.Metric
,io.dropwizard.metrics5.MetricSet
public class GarbageCollectorMetricSet extends Object implements io.dropwizard.metrics5.MetricSet
A set of gauges for the counts and elapsed times of garbage collections.
-
-
Constructor Summary
Constructors Constructor Description GarbageCollectorMetricSet()
Creates a new set of gauges for all discoverable garbage collectors.GarbageCollectorMetricSet(Collection<GarbageCollectorMXBean> garbageCollectors)
Creates a new set of gauges for the given collection of garbage collectors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Metric>
getMetrics()
-
-
-
Constructor Detail
-
GarbageCollectorMetricSet
public GarbageCollectorMetricSet()
Creates a new set of gauges for all discoverable garbage collectors.
-
GarbageCollectorMetricSet
public GarbageCollectorMetricSet(Collection<GarbageCollectorMXBean> garbageCollectors)
Creates a new set of gauges for the given collection of garbage collectors.- Parameters:
garbageCollectors
- the garbage collectors
-
-
Method Detail
-
getMetrics
public Map<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Metric> getMetrics()
- Specified by:
getMetrics
in interfaceio.dropwizard.metrics5.MetricSet
-
-