Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12910

Add new FileSystem API to support asynchronous method calls

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • fs
    • None

    Description

      Add a new API, namely FutureFileSystem (or AsynchronousFileSystem, if it is a better name). All the APIs in FutureFileSystem are the same as FileSystem except that the return type is wrapped by Future, e.g.

        //FileSystem
        public boolean rename(Path src, Path dst) throws IOException;
      
        //FutureFileSystem
        public Future<Boolean> rename(Path src, Path dst) throws IOException;
      

      Note that FutureFileSystem does not extend FileSystem.

      Attachments

        1. HADOOP-12910-HDFS-9924.000.patch
          4 kB
          Xiaobing Zhou
        2. HADOOP-12910-HDFS-9924.001.patch
          5 kB
          Xiaobing Zhou
        3. HADOOP-12910-HDFS-9924.002.patch
          5 kB
          Xiaobing Zhou

        Issue Links

          Activity

            People

              xiaobingo Xiaobing Zhou
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              33 Start watching this issue

              Dates

                Created:
                Updated: