Interface BlockAllocatorListener
- All Known Implementing Classes:
BlockVerifierListener
public interface BlockAllocatorListener
An instance of this listener can be provided to
BlockAllocator,
which will be notified if the blocks are freed or allocated-
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 freed
-
Method Details
-
blocksFreed
Notifies that the blocks have been freed- Parameters:
name- the name of the allocatorcatalogBlockIndices- the indices to be freedrebalance- if the rebalancing is requested
-
blocksAllocated
void blocksAllocated(String name, BlockType blockType, CatalogBlockIndices catalogBlockIndices, boolean rebalance) Notifies that the blocks have been allocated- Parameters:
name- the name of the allocatorcatalogBlockIndices- the indices to be allocatedrebalance- if the rebalancing is requested
-