Package org.apache.pulsar.common.stats
Interface JvmGCMetricsLogger
- All Known Implementing Classes:
JvmDefaultGCMetricsLogger
,JvmG1GCMetricsLogger
public interface JvmGCMetricsLogger
JvmGCMetricsLogger
can be implemented for each specific GC type which retrieves GC count and pause time and
logs it into metrics.-
Method Summary
Modifier and TypeMethodDescriptionvoid
logMetrics
(Metrics metrics) JvmGCMetricsLogger
should update the metrics with GC specific dimensions and value.void
refresh()
It will be triggered byJvmMetrics
periodically to refresh stats at interval (default = 1 min).
-
Method Details
-
logMetrics
JvmGCMetricsLogger
should update the metrics with GC specific dimensions and value.- Parameters:
metrics
-
-
refresh
void refresh()It will be triggered byJvmMetrics
periodically to refresh stats at interval (default = 1 min).
-