Class BlockVerifierListener
java.lang.Object
org.rostore.v2.media.block.allocator.BlockVerifierListener
- All Implemented Interfaces:
BlockAllocatorListener
Special kind of listener that can be used to verify the block allocations
It is a debugging tool.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidblocksAllocated(String name, BlockType blockType, CatalogBlockIndices catalogBlockIndices, boolean rebalance) Notifies that the blocks have been allocatedvoidblocksFreed(String name, CatalogBlockIndices catalogBlockIndices, boolean rebalance) Notifies that the blocks have been freedsnapshot()
-
Constructor Details
-
BlockVerifierListener
public BlockVerifierListener()
-
-
Method Details
-
snapshot
-
blocksFreed
Description copied from interface:BlockAllocatorListenerNotifies that the blocks have been freed- Specified by:
blocksFreedin interfaceBlockAllocatorListener- Parameters:
name- the name of the allocatorcatalogBlockIndices- the indices to be freedrebalance- if the rebalancing is requested
-
blocksAllocated
public void blocksAllocated(String name, BlockType blockType, CatalogBlockIndices catalogBlockIndices, boolean rebalance) Description copied from interface:BlockAllocatorListenerNotifies that the blocks have been allocated- Specified by:
blocksAllocatedin interfaceBlockAllocatorListener- Parameters:
name- the name of the allocatorcatalogBlockIndices- the indices to be allocatedrebalance- if the rebalancing is requested
-