BlockStorageMovementNeeded.DirPendingWorkInfo (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.namenode.sps, class: BlockStorageMovementNeeded, class: DirPendingWorkInfo

Package org.apache.hadoop.hdfs.server.namenode.sps

# Class BlockStorageMovementNeeded.DirPendingWorkInfo

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.sps.BlockStorageMovementNeeded.DirPendingWorkInfo

Enclosing class:
  BlockStorageMovementNeeded

public static class BlockStorageMovementNeeded.DirPendingWorkInfo extends Object
Info for directory recursive scan.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DirPendingWorkInfo()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addPendingWorkCount(int count)`
  Increment the pending work count for directory.
  `void`
  `decrementPendingWorkCount()`
  Decrement the pending work count for directory one track info is completed.
  `boolean`
  `isDirWorkDone()`
  Return true if all the pending work is done and directory fully scanned, otherwise false.
  `void`
  `markScanCompleted()`
  Mark directory scan is completed.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.