SnapshotStatsMXBean (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.namenode.snapshot, interface: SnapshotStatsMXBean

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

# Interface SnapshotStatsMXBean

All Known Implementing Classes:
  `SnapshotManager`

public interface SnapshotStatsMXBean
This is an interface used to retrieve statistic information related to snapshots

- ## Method Summary

  Modifier and Type
  Method
  Description
  `SnapshotInfo.Bean[]`
  `getSnapshots()`
  Return the list of snapshots
  `org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus.Bean[]`
  `getSnapshottableDirectories()`
  Return the list of snapshottable directories

- ## Method Details

  - ### getSnapshottableDirectories

    org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus.Bean[] getSnapshottableDirectories()
    Return the list of snapshottable directories
    Returns:
      the list of snapshottable directories

  - ### getSnapshots

    SnapshotInfo.Bean[] getSnapshots()
    Return the list of snapshots
    Returns:
      the list of snapshots