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