public static class INode.ReclaimContext
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected BlockStoragePolicySuite |
bsps |
|
protected INode.BlocksMapUpdateInfo |
collectedBlocks |
|
protected java.util.List<INode> |
removedINodes |
|
protected java.util.List<java.lang.Long> |
removedUCFiles |
| Constructor | Description |
|---|---|
ReclaimContext(BlockStoragePolicySuite bsps,
INode.BlocksMapUpdateInfo collectedBlocks,
java.util.List<INode> removedINodes,
java.util.List<java.lang.Long> removedUCFiles) |
| Modifier and Type | Method | Description |
|---|---|---|
INode.BlocksMapUpdateInfo |
collectedBlocks() |
|
INode.ReclaimContext |
getCopy() |
make a copy with the same collectedBlocks, removedINodes, and
removedUCFiles but a new quotaDelta.
|
int |
getSnapshotIdToBeDeleted() |
For
FSEditLogOpCodes.OP_DELETE_SNAPSHOT,
return the snapshot to be deleted. |
int |
getSnapshotIdToBeDeleted(int snapshotId,
INode inode) |
|
INode.QuotaDelta |
quotaDelta() |
|
void |
setSnapshotToBeDeleted(Snapshot snapshot) |
Set the snapshot to be deleted
for
FSEditLogOpCodes.OP_DELETE_SNAPSHOT. |
BlockStoragePolicySuite |
storagePolicySuite() |
protected final BlockStoragePolicySuite bsps
protected final INode.BlocksMapUpdateInfo collectedBlocks
protected final java.util.List<INode> removedINodes
protected final java.util.List<java.lang.Long> removedUCFiles
public ReclaimContext(BlockStoragePolicySuite bsps, INode.BlocksMapUpdateInfo collectedBlocks, java.util.List<INode> removedINodes, java.util.List<java.lang.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 - INodes whose leases need to be releasedpublic void setSnapshotToBeDeleted(Snapshot snapshot)
FSEditLogOpCodes.OP_DELETE_SNAPSHOT.snapshot - the snapshot to be deletedpublic int getSnapshotIdToBeDeleted()
FSEditLogOpCodes.OP_DELETE_SNAPSHOT,
return the snapshot to be deleted.
For other ops, return Snapshot.CURRENT_STATE_ID.public int getSnapshotIdToBeDeleted(int snapshotId,
INode inode)
public BlockStoragePolicySuite storagePolicySuite()
public INode.BlocksMapUpdateInfo collectedBlocks()
public INode.QuotaDelta quotaDelta()
public INode.ReclaimContext getCopy()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.