Interface UfsManager

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable

    public interface UfsManager
    extends java.io.Closeable
    A class that manages the UFS used by different services.
    • Method Detail

      • addMount

        void addMount​(long mountId,
                      AlluxioURI ufsUri,
                      UnderFileSystemConfiguration ufsConf)
        Keeps track of a mount id and maps it to its URI in Alluxio and configuration. This is an Alluxio-only operation and no interaction to UFS will be made.
        Parameters:
        mountId - the mount id
        ufsUri - the UFS path
        ufsConf - the UFS configuration
      • addMountWithRecorder

        void addMountWithRecorder​(long mountId,
                                  AlluxioURI ufsUri,
                                  UnderFileSystemConfiguration ufsConf,
                                  Recorder recorder)
        Keeps track of a mount id and maps it to its URI in Alluxio and configuration and records the execution process. This is an Alluxio-only operation and no interaction to UFS will be made.
        Parameters:
        mountId - the mount id
        ufsUri - the UFS path
        ufsConf - the UFS configuration
        recorder - recorder used to record the detailed execution process
      • removeMount

        void removeMount​(long mountId)
        Removes the association from a mount id to a UFS instance. If the mount id is not known, this is a noop.
        Parameters:
        mountId - the mount id
      • getJournal

        UfsManager.UfsClient getJournal​(java.net.URI location)
        Parameters:
        location - the journal location
        Returns:
        the UFS client associated with journal location
      • hasMount

        boolean hasMount​(long mountId)
        Checks if a mountId exists.
        Parameters:
        mountId - the mountId to check
        Returns:
        whether the mountId has been occupied