public static class INode.ReclaimContext extends Object
Modifier and Type | Field and Description |
---|---|
protected BlockStoragePolicySuite |
bsps |
protected INode.BlocksMapUpdateInfo |
collectedBlocks |
protected List<org.apache.hadoop.hdfs.server.namenode.INode> |
removedINodes |
protected List<Long> |
removedUCFiles |
Constructor and Description |
---|
INode.ReclaimContext(BlockStoragePolicySuite bsps,
INode.BlocksMapUpdateInfo collectedBlocks,
List<org.apache.hadoop.hdfs.server.namenode.INode> removedINodes,
List<Long> removedUCFiles) |
Modifier and Type | Method and Description |
---|---|
INode.BlocksMapUpdateInfo |
collectedBlocks() |
INode.ReclaimContext |
getCopy()
make a copy with the same collectedBlocks, removedINodes, and
removedUCFiles but a new quotaDelta.
|
INode.QuotaDelta |
quotaDelta() |
BlockStoragePolicySuite |
storagePolicySuite() |
protected final BlockStoragePolicySuite bsps
protected final INode.BlocksMapUpdateInfo collectedBlocks
protected final List<org.apache.hadoop.hdfs.server.namenode.INode> removedINodes
public INode.ReclaimContext(BlockStoragePolicySuite bsps, INode.BlocksMapUpdateInfo collectedBlocks, List<org.apache.hadoop.hdfs.server.namenode.INode> removedINodes, List<Long> removedUCFiles)
bsps
- block storage policy suite to calculate intended storage type
usagecollectedBlocks
- blocks collected from the descents for further block
deletion/update will be added to the given map.removedINodes
- INodes collected from the descents for further cleaning up ofremovedUCFiles
- public BlockStoragePolicySuite storagePolicySuite()
public INode.BlocksMapUpdateInfo collectedBlocks()
public INode.QuotaDelta quotaDelta()
public INode.ReclaimContext getCopy()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.