org.apache.hadoop.fs.http.server
Class FSOperations.FSHomeDir

java.lang.Object
  extended by org.apache.hadoop.fs.http.server.FSOperations.FSHomeDir
All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
Enclosing class:
FSOperations

@InterfaceAudience.Private
public static class FSOperations.FSHomeDir
extends Object
implements FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>

Executor that performs a home-dir FileSystemAccess files system operation.


Constructor Summary
FSOperations.FSHomeDir()
           
 
Method Summary
 org.json.simple.JSONObject execute(org.apache.hadoop.fs.FileSystem fs)
          Executes the filesystem operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSOperations.FSHomeDir

public FSOperations.FSHomeDir()
Method Detail

execute

public org.json.simple.JSONObject execute(org.apache.hadoop.fs.FileSystem fs)
                                   throws IOException
Executes the filesystem operation.

Specified by:
execute in interface FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
Parameters:
fs - filesystem instance to use.
Returns:
a JSON object with the user home directory.
Throws:
IOException - thrown if an IO error occured.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.