Package org.apache.hadoop.fs.http.server
Class FSOperations.FSSetTimes
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSSetTimes
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<Void>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSSetTimes
extends Object
implements FileSystemAccess.FileSystemExecutor<Void>
Executor that performs a set-times FileSystemAccess files system operation.
-
Constructor Summary
ConstructorsConstructorDescriptionFSSetTimes(String path, long mTime, long aTime) Creates a set-times executor. -
Method Summary
-
Constructor Details
-
FSSetTimes
Creates a set-times executor.- Parameters:
path- path to set the times.mTime- modified time to set.aTime- access time to set.
-
-
Method Details
-
execute
Executes the filesystem operation.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<Void>- Parameters:
fs- filesystem instance to use.- Returns:
- void.
- Throws:
IOException- thrown if an IO error occurred.
-