Package org.rostore.v2.media
Class MemoryConsumption
java.lang.Object
org.rostore.v2.media.MemoryConsumption
Provides information about the objects the ro-store
Media
instance is currently keeping in memory.-
Constructor Summary
ModifierConstructorDescriptionprotected
MemoryConsumption
(int blocksAllocated, int blockSequencesAllocated, int blockContainerAllocated) -
Method Summary
Modifier and TypeMethodDescriptionint
Provides a number ofBlockContainer
instances that are currently open and are kept in memory.int
Provides a number of blocks which are currently mapped from the physical storage to the memory.int
Provides a number of currently activeBlockIndexSequence
that are kept 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 activeBlockIndexSequence
that are kept in memory.- Returns:
- the number of block sequences
-
getBlockContainerAllocated
public int getBlockContainerAllocated()Provides a number ofBlockContainer
instances that are currently open and are kept in memory.- Returns:
- the number of block containers
-