Package org.apache.hadoop.fs.http.server
Class FSOperations.FSGetSnapshotDiff
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSGetSnapshotDiff
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<String>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSGetSnapshotDiff
extends Object
implements FileSystemAccess.FileSystemExecutor<String>
Executor that performs a getSnapshotDiff operation.
-
Constructor Summary
ConstructorsConstructorDescriptionFSGetSnapshotDiff(String path, String oldSnapshotName, String snapshotName) Creates a getSnapshotDiff executor. -
Method Summary
-
Constructor Details
-
FSGetSnapshotDiff
Creates a getSnapshotDiff executor.- Parameters:
path- directory path of the snapshots to be examined.oldSnapshotName- Older snapshot name.snapshotName- Newer snapshot name.
-
-
Method Details
-
execute
Executes the filesystem operation.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<String>- Parameters:
fs- filesystem instance to use.- Returns:
- A serialized JSON string of snapshot diffs.
- Throws:
IOException- thrown if an IO error occurred.
-