Package com.codahale.metrics.jvm
Class GarbageCollectorMetricSet
java.lang.Object
com.codahale.metrics.jvm.GarbageCollectorMetricSet
A set of gauges for the counts and elapsed times of garbage collections.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<GarbageCollectorMXBean> private static final Pattern
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionA map of metric names to metrics.
-
Field Details
-
WHITESPACE
-
garbageCollectors
-
-
Constructor Details
-
GarbageCollectorMetricSet
public GarbageCollectorMetricSet()Creates a new set of gauges for all discoverable garbage collectors. -
GarbageCollectorMetricSet
Creates a new set of gauges for the given collection of garbage collectors.- Parameters:
garbageCollectors
- the garbage collectors
-
-
Method Details
-
getMetrics
Description copied from interface:MetricSet
A map of metric names to metrics.- Specified by:
getMetrics
in interfaceMetricSet
- Returns:
- the metrics
-