@InterfaceAudience.Private public static class FSOperations.FSCreateSnapshot extends Object implements FileSystemAccess.FileSystemExecutor<String>
Constructor and Description |
---|
FSOperations.FSCreateSnapshot(String path,
String snapshotName)
Creates a createSnapshot executor.
|
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 © 2022 Apache Software Foundation. All rights reserved.