You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2016/03/10 01:47:40 UTC

[jira] [Created] (HADOOP-12910) Add new FileSystem API to support asynchronous method calls

Tsz Wo Nicholas Sze created HADOOP-12910:
--------------------------------------------

             Summary: Add new FileSystem API to support asynchronous method calls
                 Key: HADOOP-12910
                 URL: https://issues.apache.org/jira/browse/HADOOP-12910
             Project: Hadoop Common
          Issue Type: New Feature
          Components: fs
            Reporter: Tsz Wo Nicholas Sze
            Assignee: Xiaobing Zhou


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 and they do not throw IOException, e.g.
{code}
  //FileSystem
  public boolean rename(Path src, Path dst) throws IOException;

  //FutureFileSystem
  public Future<Boolean> rename(Path src, Path dst) throws IOException;
{code}
Note that FutureFileSystem does not extend FileSystem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)