@Private
@Unstable
public class ContentSummaryComputationContext
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
|
static java.lang.String |
REPLICATED |
| Constructor | Description |
|---|---|
ContentSummaryComputationContext(BlockStoragePolicySuite bsps) |
Constructor for blocking computation.
|
ContentSummaryComputationContext(FSDirectory dir,
FSNamesystem fsn,
long limitPerRun,
long sleepMicroSec) |
Constructor
|
ContentSummaryComputationContext(FSDirectory dir,
FSNamesystem fsn,
long limitPerRun,
long sleepMicroSec,
FSPermissionChecker pc) |
| Modifier and Type | Method | Description |
|---|---|---|
BlockStoragePolicySuite |
getBlockStoragePolicySuite() |
|
ContentCounts |
getCounts() |
Get the content counts
|
java.lang.String |
getErasureCodingPolicyName(INode inode) |
Get the erasure coding policy.
|
ContentCounts |
getSnapshotCounts() |
|
long |
getYieldCount() |
Return current yield count
|
boolean |
yield() |
Relinquish locks held during computation for a short while
and reacquire them.
|
public static final java.lang.String REPLICATED
public static final org.slf4j.Logger LOG
public ContentSummaryComputationContext(FSDirectory dir, FSNamesystem fsn, long limitPerRun, long sleepMicroSec)
dir - The FSDirectory instancefsn - The FSNamesystem instancelimitPerRun - allowed number of operations in one
locking period. 0 or a negative number means
no limit (i.e. no yielding)public ContentSummaryComputationContext(FSDirectory dir, FSNamesystem fsn, long limitPerRun, long sleepMicroSec, FSPermissionChecker pc)
public ContentSummaryComputationContext(BlockStoragePolicySuite bsps)
public long getYieldCount()
public boolean yield()
public ContentCounts getCounts()
public ContentCounts getSnapshotCounts()
public BlockStoragePolicySuite getBlockStoragePolicySuite()
public java.lang.String getErasureCodingPolicyName(INode inode)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.