Class BlockStorageMovementNeeded.DirPendingWorkInfo
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.sps.BlockStorageMovementNeeded.DirPendingWorkInfo
- Enclosing class:
- BlockStorageMovementNeeded
Info for directory recursive scan.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPendingWorkCount(int count) Increment the pending work count for directory.voidDecrement the pending work count for directory one track info is completed.booleanReturn true if all the pending work is done and directory fully scanned, otherwise false.voidMark directory scan is completed.
-
Constructor Details
-
DirPendingWorkInfo
public DirPendingWorkInfo()
-
-
Method Details
-
addPendingWorkCount
public void addPendingWorkCount(int count) Increment the pending work count for directory. -
decrementPendingWorkCount
public void decrementPendingWorkCount()Decrement the pending work count for directory one track info is completed. -
isDirWorkDone
public boolean isDirWorkDone()Return true if all the pending work is done and directory fully scanned, otherwise false. -
markScanCompleted
public void markScanCompleted()Mark directory scan is completed.
-