@ThreadSafe public final class DefaultBlockStoreMeta extends Object implements BlockStoreMeta
TODO(bin): Use proto buf to represent this information.
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 method is only available when users initialize
the blockStoreMeta with full block meta requirement.
|
Map<BlockStoreLocation,List<Long>> |
getBlockListByStorageLocation()
Note: This method is only available when users initialize
the blockStoreMeta with full block meta requirement.
|
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 when blocks are included.
|
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
getBlockList
in interface BlockStoreMeta
public Map<BlockStoreLocation,List<Long>> getBlockListByStorageLocation()
BlockStoreMeta
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
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.