Class PagesAllocationRange


  • public class PagesAllocationRange
    extends Object
    Range of pages allocated. Contains currently allocated page count and previously observed page count. May be used for tracking history of recent allocation for partition [partition, cacheId]
    • Constructor Detail

      • PagesAllocationRange

        public PagesAllocationRange​(int lastAllocatedPageCnt,
                                    int currAllocatedPageCnt)
        Creates pages range
        Parameters:
        lastAllocatedPageCnt - Last allocated pages count.
        currAllocatedPageCnt - Currently allocated pages count.
    • Method Detail

      • getCurrAllocatedPageCnt

        public int getCurrAllocatedPageCnt()
        Returns:
        Total current number of pages allocated, minimum value is 0.
      • getLastAllocatedPageCnt

        public int getLastAllocatedPageCnt()
        Returns:
        Previously observed total number of allocated pages.