Class SegmentBufferMonitor

    • Field Detail

      • DIRECT_BUFFER_COUNT

        public static final String DIRECT_BUFFER_COUNT
        Number of allocated direct byte buffers
        See Also:
        Constant Field Values
      • DIRECT_BUFFER_CAPACITY

        public static final String DIRECT_BUFFER_CAPACITY
        Total capacity of the allocated direct byte buffers.
        See Also:
        Constant Field Values
      • HEAP_BUFFER_COUNT

        public static final String HEAP_BUFFER_COUNT
        Number of allocated heap byte buffers
        See Also:
        Constant Field Values
      • HEAP_BUFFER_CAPACITY

        public static final String HEAP_BUFFER_CAPACITY
        Total capacity of the allocated heap byte buffers.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SegmentBufferMonitor

        public SegmentBufferMonitor​(@NotNull
                                    @NotNull org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
        Create a new instance using the passed statisticsProvider to expose buffer allocations.
        Parameters:
        statisticsProvider -
    • Method Detail

      • trackAllocation

        public void trackAllocation​(@NotNull
                                    @NotNull org.apache.jackrabbit.oak.commons.Buffer buffer)
        Track the allocation of a buffer and update the exposed statistics.
        Parameters:
        buffer -