FileSystemAccess.FileSystemExecutor<java.lang.Void>@Private public static class FSOperations.FSRenameSnapshot extends java.lang.Object implements FileSystemAccess.FileSystemExecutor<java.lang.Void>
| Constructor | Description |
|---|---|
FSRenameSnapshot(java.lang.String path,
java.lang.String oldSnapshotName,
java.lang.String snapshotName) |
Creates a renameSnapshot executor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Void |
execute(org.apache.hadoop.fs.FileSystem fs) |
Executes the filesystem operation.
|
public FSRenameSnapshot(java.lang.String path,
java.lang.String oldSnapshotName,
java.lang.String snapshotName)
path - directory path of the snapshot to be renamed.oldSnapshotName - current snapshot name.snapshotName - new snapshot name to be set.public java.lang.Void execute(org.apache.hadoop.fs.FileSystem fs)
throws java.io.IOException
execute in interface FileSystemAccess.FileSystemExecutor<java.lang.Void>fs - filesystem instance to use.java.io.IOException - thrown if an IO error occurred.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.