Interface BlockStoreMeta


  • public interface BlockStoreMeta
    Interface for the block store meta in Alluxio.
    • Method Detail

      • getBlockList

        java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> getBlockList()
        Note: This method is only available when users initialize the blockStoreMeta with full block meta requirement.
        Returns:
        A mapping from storage tier alias to blocks
      • getBlockListByStorageLocation

        java.util.Map<BlockStoreLocation,​java.util.List<java.lang.Long>> getBlockListByStorageLocation()
        Note: This method is only available when users initialize the blockStoreMeta with full block meta requirement.
        Returns:
        A mapping from storage location alias to blocks
      • getCapacityBytes

        long getCapacityBytes()
        Returns:
        the capacity in bytes
      • getCapacityBytesOnTiers

        java.util.Map<java.lang.String,​java.lang.Long> getCapacityBytesOnTiers()
        Returns:
        a mapping from tier aliases to capacity in bytes
      • getCapacityBytesOnDirs

        java.util.Map<Pair<java.lang.String,​java.lang.String>,​java.lang.Long> getCapacityBytesOnDirs()
        Returns:
        a mapping from tier directory-path pairs to capacity in bytes
      • getDirectoryPathsOnTiers

        java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getDirectoryPathsOnTiers()
        Returns:
        a mapping from tier aliases to directory paths in that tier
      • getLostStorage

        java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getLostStorage()
        Returns:
        a mapping from tier alias to lost storage paths
      • getNumberOfBlocks

        int getNumberOfBlocks()
        Note: This is only available when blocks are included.
        Returns:
        the number of blocks
      • getUsedBytes

        long getUsedBytes()
        Returns:
        the used capacity in bytes
      • getUsedBytesOnTiers

        java.util.Map<java.lang.String,​java.lang.Long> getUsedBytesOnTiers()
        Returns:
        a mapping from tier aliases to used capacity in bytes
      • getUsedBytesOnDirs

        java.util.Map<Pair<java.lang.String,​java.lang.String>,​java.lang.Long> getUsedBytesOnDirs()
        Returns:
        a mapping from tier directory-path pairs to used capacity in bytes
      • getStorageTierAssoc

        StorageTierAssoc getStorageTierAssoc()
        Returns:
        the storage tier mapping