Storage.FormatConfirmable (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.common, class: Storage, interface: FormatConfirmable

Package org.apache.hadoop.hdfs.server.common

# Interface Storage.FormatConfirmable

All Known Subinterfaces:
  `JournalManager`

All Known Implementing Classes:
  `FileJournalManager`, `JournalSet`, `QuorumJournalManager`, `Storage.StorageDirectory`

Enclosing class:
  Storage

@Private public static interface Storage.FormatConfirmable
Interface for classes which need to have the user confirm their formatting during NameNode -format and other similar operations. This is currently a storage directory or journal manager.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasSomeData()`
  `String`
  `toString()`

- ## Method Details

  - ### hasSomeData

    boolean hasSomeData() throws IOException
    Returns:
      true if the storage seems to have some valid data in it, and the user should be required to confirm the format. Otherwise, false.
    Throws:
      `IOException` - if the storage cannot be accessed at all.

  - ### toString

    String toString()
    Overrides:
      `toString` in class `Object`
    Returns:
      a string representation of the formattable item, suitable for display to the user inside a prompt