public BlockMeta getBlockMeta ( long blockId ) throws BlockDoesNotExistException { for ( StorageTier tier : mTiers ) { for ( StorageDir dir : tier . getStorageDirs ( ) ) { if ( dir . hasBlockMeta ( blockId ) ) { return dir . getBlockMeta ( blockId ) ; } } } throw new BlockDoesNotExistException ( ExceptionMessage . BLOCK_META_NOT_FOUND , blockId ) ; }
Gets the metadata of a block given its block id .