Package org.apache.hadoop.fs.http.server
Class FSOperations
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations
FileSystem operation executors used by
HttpFSServer.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExecutor that performs a check access operation.static classExecutor that gets the ACL information for a given file.static classExecutor that performs an allowSnapshot operation.static classExecutor that performs an append FileSystemAccess files system operation.static classExecutor that performs a concat FileSystemAccess files system operation.static classExecutor that performs a content-summary FileSystemAccess files system operation.static classExecutor that performs a create FileSystemAccess files system operation.static classExecutor that performs a createSnapshot FileSystemAccess operation.static classExecutor that performs a delete FileSystemAccess files system operation.static classExecutor that performs a deleteSnapshot FileSystemAccess operation.static classExecutor that performs an disallowSnapshot operation.static classExecutor that performs a getFileBlockLocations operation.static classExecutor that performs a getFileBlockLocations operation for legacy clients that supports only GET_BLOCK_LOCATIONS.static classExecutor that performs a file-checksum FileSystemAccess files system operation.static classExecutor that performs a linkFile-status FileSystemAccess files system operation.static classExecutor that performs a file-status FileSystemAccess files system operation.static classExecutor that performs a getAllStoragePolicies FileSystemAccess files system operation.static classExecutor that performs a FSGetErasureCodingCodecs operation.static classExecutor that performs a FSGetErasureCodingPolicies operation.static classExecutor that performs a getErasureCodingPolicy operation.static classExecutor that performs a getServerDefaults operation.static classExecutor that performs a getSnapshotDiff operation.static classExecutor that performs a getSnapshotDiffListing operation.static classExecutor that performs a getSnapshotListing operation.static classExecutor that performs a getSnapshottableDirListing operation.static classExecutor that performs a getStoragePolicy FileSystemAccess files system operation.static classExecutor that performs a FSGetTrashRoots operation.static classExecutor that performs getting xattrs FileSystemAccess files system operation.static classExecutor that performs a home-dir FileSystemAccess files system operation.static classExecutor that performs a list-status FileSystemAccess files system operation.static classExecutor that performs a batched directory listing.static classExecutor that performs listing xattrs FileSystemAccess files system operation.static classExecutor that performs a mkdirs FileSystemAccess files system operation.static classExecutor that modifies acl entries for a file in a FileSystemstatic classExecutor that performs a open FileSystemAccess files system operation.static classExecutor that performs a quota-usage FileSystemAccess files system operation.static classExecutor that removes all acls from a file in a FileSystemstatic classExecutor that removes acl entries from a file in a FileSystemstatic classExecutor that removes the default acl from a directory in a FileSystemstatic classExecutor that performs a removexattr FileSystemAccess files system operation.static classExecutor that performs a rename FileSystemAccess files system operation.static classExecutor that performs a renameSnapshot FileSystemAccess operation.static classExecutor that performs a satisfyStoragePolicy operation.static classExecutor that sets the acl for a file in a FileSystemstatic classExecutor that performs a setErasureCodingPolicy operation.static classExecutor that performs a set-owner FileSystemAccess files system operation.static classExecutor that performs a set-permission FileSystemAccess files system operation.static classExecutor that performs a set-replication FileSystemAccess files system operation.static classExecutor that performs a setStoragePolicy FileSystemAccess files system operation.static classExecutor that performs a set-times FileSystemAccess files system operation.static classExecutor that performs a setxattr FileSystemAccess files system operation.static classExecutor that performs a getFsStatus operation.static classExecutor that performs getting trash root FileSystemAccess files system operation.static classExecutor that performs a truncate FileSystemAccess files system operation.static classExecutor that performs a unsetErasureCodingPolicy operation.static classExecutor that performs a unsetStoragePolicy FileSystemAccess files system operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic longcopyBytes(InputStream in, OutputStream out) These copyBytes methods combines the two different flavors used originally.static longcopyBytes(InputStream in, OutputStream out, long count) static voidsetBufferSize(org.apache.hadoop.conf.Configuration conf) Set the buffer size.
-
Method Details
-
setBufferSize
public static void setBufferSize(org.apache.hadoop.conf.Configuration conf) Set the buffer size. The size is set during the initialization of HttpFSServerWebApp.- Parameters:
conf- the configuration to get the bufferSize
-
copyBytes
These copyBytes methods combines the two different flavors used originally. One with length and another one with buffer size. In this impl, buffer size is determined internally, which is a singleton normally set during initialization.- Parameters:
in- the inputStreamout- the outputStream- Returns:
- the totalBytes
- Throws:
IOException- the exception to be thrown.
-
copyBytes
- Throws:
IOException
-