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

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

@Private @Unstable package org.apache.hadoop.hdfs.server.namenode.sps
This package provides a mechanism for satisfying the storage policy of a path.

- Related Packages
  Package
  Description
  org.apache.hadoop.hdfs.server.namenode
- Class
  Description
  BlockMovementListener
  Interface for notifying about block movement attempt completion.
  BlockMoveTaskHandler
  Interface for implementing different ways of block moving approaches.
  BlockStorageMovementAttemptedItems
  A monitor class for checking whether block storage movements attempt completed or not.
  BlockStorageMovementNeeded
  A Class to track the block collection IDs (Inode's ID) for which physical storage movement needed as per the Namespace and StorageReports from DN.
  BlockStorageMovementNeeded.DirPendingWorkInfo
  Info for directory recursive scan.
  Context
  An interface for the communication between SPS and Namenode module.
  DatanodeCacheManager
  The Datanode cache Manager handles caching of `DatanodeStorageReport`.
  FileCollector
  An interface for scanning the directory recursively and collect files under the given directory.
  ItemInfo
  ItemInfo is a file info object for which need to satisfy the policy.
  SPSService
  An interface for SPSService, which exposes life cycle and processing APIs.
  StoragePolicySatisfier
  Setting storagePolicy on a file after the file write will only update the new storage policy type in Namespace, but physical block storage movement will not happen until user runs "Mover Tool" explicitly for such files.
  StoragePolicySatisfier.AttemptedItemInfo
  This class contains information of an attempted blocks and its last attempted or reported time stamp.
  StoragePolicySatisfier.DatanodeMap
  Maintains storage type map with the available datanodes in the cluster.
  StoragePolicySatisfier.DatanodeWithStorage
  Keeps datanode with its respective set of supported storage types.
  StoragePolicySatisfyManager
  This manages satisfy storage policy invoked path ids and expose methods to process these path ids.