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

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

# Class NNStorageRetentionManager

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.NNStorageRetentionManager

public class NNStorageRetentionManager extends Object
The NNStorageRetentionManager is responsible for inspecting the storage directories of the NN and enforcing a retention policy on checkpoints and edit logs. It delegates the actual removal of files to a StoragePurger implementation, which might delete the files or instead copy them to a filer or HDFS for later analysis.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NNStorageRetentionManager(org.apache.hadoop.conf.Configuration conf, NNStorage storage, org.apache.hadoop.hdfs.server.namenode.LogsPurgeable purgeableLogs)`
  `NNStorageRetentionManager(org.apache.hadoop.conf.Configuration conf, NNStorage storage, org.apache.hadoop.hdfs.server.namenode.LogsPurgeable purgeableLogs, org.apache.hadoop.hdfs.server.namenode.NNStorageRetentionManager.StoragePurger purger)`

- ## Method Summary

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

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

- ## Constructor Details

  - ### NNStorageRetentionManager

    public NNStorageRetentionManager(org.apache.hadoop.conf.Configuration conf, NNStorage storage, org.apache.hadoop.hdfs.server.namenode.LogsPurgeable purgeableLogs, org.apache.hadoop.hdfs.server.namenode.NNStorageRetentionManager.StoragePurger purger)

  - ### NNStorageRetentionManager

    public NNStorageRetentionManager(org.apache.hadoop.conf.Configuration conf, NNStorage storage, org.apache.hadoop.hdfs.server.namenode.LogsPurgeable purgeableLogs)