Package com.codahale.metrics.jvm
Class GarbageCollectorMetricSet
- java.lang.Object
-
- com.codahale.metrics.jvm.GarbageCollectorMetricSet
-
- All Implemented Interfaces:
com.codahale.metrics.Metric
,com.codahale.metrics.MetricSet
public class GarbageCollectorMetricSet extends Object implements com.codahale.metrics.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.
-
-
-
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
-
-