Package org.apache.hadoop.fs.http.server
Class FSOperations.FSSetReplication
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSSetReplication
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSSetReplication
extends Object
implements FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
Executor that performs a set-replication FileSystemAccess files system operation.
-
Constructor Summary
ConstructorsConstructorDescriptionFSSetReplication(String path, short replication) Creates a set-replication executor. -
Method Summary
Modifier and TypeMethodDescriptionorg.json.simple.JSONObjectexecute(org.apache.hadoop.fs.FileSystem fs) Executes the filesystem operation.
-
Constructor Details
-
FSSetReplication
Creates a set-replication executor.- Parameters:
path- path to set the replication factor.replication- replication factor to set.
-
-
Method Details
-
execute
Executes the filesystem operation.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>- Parameters:
fs- filesystem instance to use.- Returns:
trueif the replication value was set,falseotherwise.- Throws:
IOException- thrown if an IO error occurred.
-