Package org.apache.hadoop.fs.http.server
Class FSOperations.FSRenameSnapshot
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSRenameSnapshot
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<Void>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSRenameSnapshot
extends Object
implements FileSystemAccess.FileSystemExecutor<Void>
Executor that performs a renameSnapshot FileSystemAccess operation.
-
Constructor Summary
ConstructorsConstructorDescriptionFSRenameSnapshot(String path, String oldSnapshotName, String snapshotName) Creates a renameSnapshot executor. -
Method Summary
-
Constructor Details
-
FSRenameSnapshot
Creates a renameSnapshot executor.- Parameters:
path- directory path of the snapshot to be renamed.oldSnapshotName- current snapshot name.snapshotName- new snapshot name to be set.
-
-
Method Details
-
execute
Executes the filesystem operation.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<Void>- Parameters:
fs- filesystem instance to use.- Returns:
- void
- Throws:
IOException- thrown if an IO error occurred.
-