Package org.apache.hadoop.fs.http.server
Class FSOperations.FSGetSnapshotDiffListing
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSGetSnapshotDiffListing
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<String>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSGetSnapshotDiffListing
extends Object
implements FileSystemAccess.FileSystemExecutor<String>
Executor that performs a getSnapshotDiffListing operation.
-
Constructor Summary
ConstructorsConstructorDescriptionFSGetSnapshotDiffListing(String path, String oldSnapshotName, String snapshotName, String snapshotDiffStartPath, int snapshotDiffIndex) Creates a getSnapshotDiffListing executor. -
Method Summary
-
Constructor Details
-
FSGetSnapshotDiffListing
public FSGetSnapshotDiffListing(String path, String oldSnapshotName, String snapshotName, String snapshotDiffStartPath, int snapshotDiffIndex) Creates a getSnapshotDiffListing executor.- Parameters:
path- directory path of the snapshots to be examined.oldSnapshotName- Older snapshot name.snapshotName- Newer snapshot name.snapshotDiffStartPath- snapshot diff start path.snapshotDiffIndex- snapshot diff index.
-
-
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.
-