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 Details

    • blocksFreed

      void blocksFreed(String name, CatalogBlockIndices catalogBlockIndices, boolean rebalance)
      Notifies that the blocks have been freed
      Parameters:
      name - the name of the allocator
      catalogBlockIndices - the indices to be freed
      rebalance - 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 allocator
      catalogBlockIndices - the indices to be allocated
      rebalance - if the rebalancing is requested