@ThreadSafe public final class DefaultBlockStoreMeta extends Object implements BlockStoreMeta
TODO(bin): Use proto buf to represent this information.
BlockStoreMeta.Factory
Modifier | Constructor and Description |
---|---|
protected |
DefaultBlockStoreMeta(BlockMetadataManager manager,
boolean shouldIncludeBlockIds)
Creates a new instance of
DefaultBlockStoreMeta . |
Modifier and Type | Method and Description |
---|---|
Map<String,List<Long>> |
getBlockList()
Note: This is only available in
BlockStoreMeta.Factory.createFull(alluxio.worker.block.BlockMetadataManager) . |
Map<BlockStoreLocation,List<Long>> |
getBlockListByStorageLocation()
Note: This is only available in
BlockStoreMeta.Factory.createFull(alluxio.worker.block.BlockMetadataManager) . |
long |
getCapacityBytes() |
Map<Pair<String,String>,Long> |
getCapacityBytesOnDirs() |
Map<String,Long> |
getCapacityBytesOnTiers() |
Map<String,List<String>> |
getDirectoryPathsOnTiers() |
Map<String,List<String>> |
getLostStorage() |
int |
getNumberOfBlocks()
Note: This is only available in
BlockStoreMeta.Factory.createFull(alluxio.worker.block.BlockMetadataManager) . |
StorageTierAssoc |
getStorageTierAssoc() |
long |
getUsedBytes() |
Map<Pair<String,String>,Long> |
getUsedBytesOnDirs() |
Map<String,Long> |
getUsedBytesOnTiers() |
protected DefaultBlockStoreMeta(BlockMetadataManager manager, boolean shouldIncludeBlockIds)
DefaultBlockStoreMeta
.manager
- a block metadata manager handlepublic Map<String,List<Long>> getBlockList()
BlockStoreMeta
BlockStoreMeta.Factory.createFull(alluxio.worker.block.BlockMetadataManager)
.getBlockList
in interface BlockStoreMeta
public Map<BlockStoreLocation,List<Long>> getBlockListByStorageLocation()
BlockStoreMeta
BlockStoreMeta.Factory.createFull(alluxio.worker.block.BlockMetadataManager)
.getBlockListByStorageLocation
in interface BlockStoreMeta
public long getCapacityBytes()
getCapacityBytes
in interface BlockStoreMeta
public Map<String,Long> getCapacityBytesOnTiers()
getCapacityBytesOnTiers
in interface BlockStoreMeta
public Map<Pair<String,String>,Long> getCapacityBytesOnDirs()
getCapacityBytesOnDirs
in interface BlockStoreMeta
public Map<String,List<String>> getDirectoryPathsOnTiers()
getDirectoryPathsOnTiers
in interface BlockStoreMeta
public Map<String,List<String>> getLostStorage()
getLostStorage
in interface BlockStoreMeta
public int getNumberOfBlocks()
BlockStoreMeta
BlockStoreMeta.Factory.createFull(alluxio.worker.block.BlockMetadataManager)
.getNumberOfBlocks
in interface BlockStoreMeta
public long getUsedBytes()
getUsedBytes
in interface BlockStoreMeta
public Map<String,Long> getUsedBytesOnTiers()
getUsedBytesOnTiers
in interface BlockStoreMeta
public Map<Pair<String,String>,Long> getUsedBytesOnDirs()
getUsedBytesOnDirs
in interface BlockStoreMeta
public StorageTierAssoc getStorageTierAssoc()
getStorageTierAssoc
in interface BlockStoreMeta
Copyright © 2023. All Rights Reserved.