Interface Namesystem

All Superinterfaces:
RwLock, SafeMode
All Known Implementing Classes:
FSNamesystem

@Private public interface Namesystem extends RwLock, SafeMode
Namesystem operations.
  • Method Details

    • isRunning

      boolean isRunning()
      Is this name system running?
    • getBlockCollection

      BlockCollection getBlockCollection(long id)
    • getFSDirectory

      FSDirectory getFSDirectory()
    • startSecretManagerIfNecessary

      void startSecretManagerIfNecessary()
    • isInSnapshot

      boolean isInSnapshot(long blockCollectionID)
    • getCacheManager

      CacheManager getCacheManager()
    • getHAContext

      HAContext getHAContext()
    • inTransitionToActive

      boolean inTransitionToActive()
      Returns:
      Whether the namenode is transitioning to active state and is in the middle of the starting active services.
    • removeXattr

      void removeXattr(long id, String xattrName) throws IOException
      Remove xAttr from the inode.
      Parameters:
      id -
      xattrName -
      Throws:
      IOException
    • checkAndProvisionSnapshotTrashRoots

      void checkAndProvisionSnapshotTrashRoots()
      Check if snapshot roots are created for all existing snapshottable directories. Create them if not.