public class BlockWorkerMetrics extends Object
Constructor and Description |
---|
BlockWorkerMetrics(long capacityBytes,
long usedBytes,
long capacityFree,
Map<String,Long> capacityBytesOnTiers,
Map<String,Long> usedBytesOnTiers,
Map<String,Long> freeBytesOnTiers,
int numberOfBlocks)
construct func of BlockWorkerMetrics.
|
Modifier and Type | Method and Description |
---|---|
static BlockWorkerMetrics |
from(BlockStoreMeta meta,
StorageTierAssoc s)
return a new BlockWorkerMetrics form a new BlockStoreMeta.
|
long |
getCapacityBytes() |
Map<String,Long> |
getCapacityBytesOnTiers() |
long |
getCapacityFree() |
Map<String,Long> |
getFreeBytesOnTiers() |
int |
getNumberOfBlocks() |
long |
getUsedBytes() |
Map<String,Long> |
getUsedBytesOnTiers() |
public BlockWorkerMetrics(long capacityBytes, long usedBytes, long capacityFree, Map<String,Long> capacityBytesOnTiers, Map<String,Long> usedBytesOnTiers, Map<String,Long> freeBytesOnTiers, int numberOfBlocks)
capacityBytes
- usedBytes
- capacityFree
- capacityBytesOnTiers
- usedBytesOnTiers
- freeBytesOnTiers
- numberOfBlocks
- public long getCapacityBytes()
public long getUsedBytes()
public long getCapacityFree()
public Map<String,Long> getCapacityBytesOnTiers()
public int getNumberOfBlocks()
public static BlockWorkerMetrics from(BlockStoreMeta meta, StorageTierAssoc s)
meta
- new BlockStoreMetas
- the StorageTierAssoc, can't import here so pass it as paramCopyright © 2023. All Rights Reserved.