@ThreadSafe public final class BlockHeartbeatReport extends Object
Constructor and Description |
---|
BlockHeartbeatReport(Map<BlockStoreLocation,List<Long>> addedBlocks,
List<Long> removedBlocks,
Map<String,List<String>> lostStorage)
Creates a new instance of
BlockHeartbeatReport . |
Modifier and Type | Method and Description |
---|---|
Map<BlockStoreLocation,List<Long>> |
getAddedBlocks()
Gets the list of blocks added by the worker in the heartbeat this report represents.
|
int |
getBlockChangeCount() |
Map<String,List<String>> |
getLostStorage()
Gets the storage paths which were lost
in the heartbeat this report represents.
|
List<Long> |
getRemovedBlocks()
Gets the list of blocks removed from this worker in the heartbeat this report represents.
|
public BlockHeartbeatReport(Map<BlockStoreLocation,List<Long>> addedBlocks, List<Long> removedBlocks, Map<String,List<String>> lostStorage)
BlockHeartbeatReport
.addedBlocks
- added blocksremovedBlocks
- remove blockslostStorage
- lost storagepublic Map<BlockStoreLocation,List<Long>> getAddedBlocks()
public List<Long> getRemovedBlocks()
public Map<String,List<String>> getLostStorage()
public int getBlockChangeCount()
Copyright © 2023. All Rights Reserved.