add block handler to handle block files on different under file systems[Tachyon-33][SubTask 1]

details are on Tachyon's JIRA
BlockHandler is used to read and write block files on different under file systems, currently local file system is realized.
Alright
On Aug 16, 2014 1:49 AM, "Haoyuan Li" <notifications@github.com> wrote:

> In core/src/main/java/tachyon/client/BlockHandler.java:
>
> > +    if (UnderFileSystem.isHadoopUnderFS(path)) {
> > +      throw new IllegalArgumentException("Unsupported block file path: " + path);
> > +    } else if (path.startsWith(Constants.PATH_SEPARATOR) || path.startsWith("file://")) {
> > +      return new BlockHandlerLocalFS(path);
> > +    }
> > +    throw new IllegalArgumentException("Unsupported block file path: " + path);
> > +  }
> > +
> > +  protected final Logger LOG = Logger.getLogger(Constants.LOGGER_TYPE);
> > +  protected String mPath;
> > +
> > +  protected BlockHandler(String path) throws IOException {
> > +    if (path == null) {
> > +      throw new IOException("Block file's path is null");
> > +    }
> > +    mPath = path;
>
> Let's wait that I merge the TachyonURI Branch.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/318/files#r16323862>.
>