Class MemoryConsumption

java.lang.Object
org.rostore.v2.media.MemoryConsumption

public class MemoryConsumption extends Object
Provides information about the objects the ro-store Media instance is currently keeping in memory.
  • Constructor Details

    • MemoryConsumption

      protected MemoryConsumption(int blocksAllocated, int blockSequencesAllocated, int blockContainerAllocated)
  • Method Details

    • getBlocksAllocated

      public int getBlocksAllocated()
      Provides a number of blocks which are currently mapped from the physical storage to the memory.
      Returns:
      the number of blocks allocated
    • getBlockSequencesAllocated

      public int getBlockSequencesAllocated()
      Provides a number of currently active BlockIndexSequence that are kept in memory.
      Returns:
      the number of block sequences
    • getBlockContainerAllocated

      public int getBlockContainerAllocated()
      Provides a number of BlockContainer instances that are currently open and are kept in memory.
      Returns:
      the number of block containers