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 TypeMethodDescriptionvoidlogMetrics(org.apache.pulsar.common.stats.Metrics metrics) JvmGCMetricsLoggershould update the metrics with GC specific dimensions and value.voidrefresh()It will be triggered byJvmMetricsperiodically to refresh stats at interval (default = 1 min).
-
Method Details
-
logMetrics
void logMetrics(org.apache.pulsar.common.stats.Metrics metrics) JvmGCMetricsLoggershould update the metrics with GC specific dimensions and value.- Parameters:
metrics-
-
refresh
void refresh()It will be triggered byJvmMetricsperiodically to refresh stats at interval (default = 1 min).
-