Package org.apache.hadoop.fs.http.server
Class FSOperations.FSCreateSnapshot
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSCreateSnapshot
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<String>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSCreateSnapshot
extends Object
implements FileSystemAccess.FileSystemExecutor<String>
Executor that performs a createSnapshot FileSystemAccess operation.
-
Constructor Summary
ConstructorsConstructorDescriptionFSCreateSnapshot(String path, String snapshotName) Creates a createSnapshot executor. -
Method Summary
-
Constructor Details
-
FSCreateSnapshot
Creates a createSnapshot executor.- Parameters:
path- directory path to be snapshotted.snapshotName- the snapshot name.
-
-
Method Details
-
execute
Executes the filesystem operation.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<String>- Parameters:
fs- filesystem instance to use.- Returns:
Paththe complete path for newly created snapshot- Throws:
IOException- thrown if an IO error occurred.
-