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