Package org.apache.pulsar.common.stats
Interface JvmGCMetricsLogger
-
- All Known Implementing Classes:
JvmDefaultGCMetricsLogger,JvmG1GCMetricsLogger
public interface JvmGCMetricsLoggerJvmGCMetricsLoggercan be implemented for each specific GC type which retrieves GC count and pause time and logs it into metrics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidlogMetrics(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 Detail
-
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).
-
-