@NotThreadSafe public final class BlockMasterInfo extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
BlockMasterInfo.BlockMasterInfoField
Enum representing the fields of the block master info.
|
Constructor and Description |
---|
BlockMasterInfo()
Creates a new instance of
BlockMasterInfo . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static BlockMasterInfo |
fromProto(BlockMasterInfo info)
Creates a new instance of
BlockMasterInfo from a proto representation. |
long |
getCapacityBytes() |
Map<String,Long> |
getCapacityBytesOnTiers() |
long |
getFreeBytes() |
int |
getLiveWorkerNum() |
int |
getLostWorkerNum() |
long |
getUsedBytes() |
Map<String,Long> |
getUsedBytesOnTiers() |
int |
hashCode() |
BlockMasterInfo |
setCapacityBytes(long capacityBytes) |
BlockMasterInfo |
setCapacityBytesOnTiers(Map<String,Long> capacityBytesOnTiers) |
BlockMasterInfo |
setFreeBytes(long freeBytes) |
BlockMasterInfo |
setLiveWorkerNum(int liveWorkerNum) |
BlockMasterInfo |
setLostWorkerNum(int lostWorkerNum) |
BlockMasterInfo |
setUsedBytes(long usedBytes) |
BlockMasterInfo |
setUsedBytesOnTiers(Map<String,Long> usedBytesOnTiers) |
protected BlockMasterInfo |
toProto() |
String |
toString() |
public BlockMasterInfo()
BlockMasterInfo
.public long getCapacityBytes()
public Map<String,Long> getCapacityBytesOnTiers()
public long getFreeBytes()
public int getLiveWorkerNum()
public int getLostWorkerNum()
public long getUsedBytes()
public Map<String,Long> getUsedBytesOnTiers()
public BlockMasterInfo setCapacityBytes(long capacityBytes)
capacityBytes
- the total capacity bytes to usepublic BlockMasterInfo setCapacityBytesOnTiers(Map<String,Long> capacityBytesOnTiers)
capacityBytesOnTiers
- the total capacity bytes on tiers to usepublic BlockMasterInfo setFreeBytes(long freeBytes)
freeBytes
- the free capacity bytes to usepublic BlockMasterInfo setLiveWorkerNum(int liveWorkerNum)
liveWorkerNum
- the live worker numberpublic BlockMasterInfo setLostWorkerNum(int lostWorkerNum)
lostWorkerNum
- the lost worker numberpublic BlockMasterInfo setUsedBytes(long usedBytes)
usedBytes
- the used capacity bytes to usepublic BlockMasterInfo setUsedBytesOnTiers(Map<String,Long> usedBytesOnTiers)
usedBytesOnTiers
- the used capacity bytes on tiers to useprotected BlockMasterInfo toProto()
public static BlockMasterInfo fromProto(BlockMasterInfo info)
BlockMasterInfo
from a proto representation.info
- the proto representation of a block master informationCopyright © 2023. All Rights Reserved.