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

java.lang.Object
  extended by org.apache.hadoop.fs.http.server.FSOperations.FSFileStatus
All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<Map>
Enclosing class:
FSOperations

@InterfaceAudience.Private
public static class FSOperations.FSFileStatus
extends Object
implements FileSystemAccess.FileSystemExecutor<Map>

Executor that performs a file-status FileSystemAccess files system operation.


Constructor Summary
FSOperations.FSFileStatus(String path)
          Creates a file-status executor.
 
Method Summary
 Map execute(org.apache.hadoop.fs.FileSystem fs)
          Executes the filesystem getFileStatus operation and returns the result in a JSONish Map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSOperations.FSFileStatus

public FSOperations.FSFileStatus(String path)
Creates a file-status executor.

Parameters:
path - the path to retrieve the status.
Method Detail

execute

public Map execute(org.apache.hadoop.fs.FileSystem fs)
            throws IOException
Executes the filesystem getFileStatus operation and returns the result in a JSONish Map.

Specified by:
execute in interface FileSystemAccess.FileSystemExecutor<Map>
Parameters:
fs - filesystem instance to use.
Returns:
a Map object (JSON friendly) with the file status.
Throws:
IOException - thrown if an IO error occurred.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.