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
@InterfaceAudience.Private
public static class FSOperations.FSSetTimes
- extends Object
- implements FileSystemAccess.FileSystemExecutor<Void>
Executor that performs a set-times FileSystemAccess files system operation.
Method Summary |
Void |
execute(org.apache.hadoop.fs.FileSystem fs)
Executes the filesystem operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSOperations.FSSetTimes
public FSOperations.FSSetTimes(String path,
long mTime,
long aTime)
- Creates a set-times executor.
- Parameters:
path
- path to set the times.mTime
- modified time to set.aTime
- access time to set.
execute
public Void execute(org.apache.hadoop.fs.FileSystem fs)
throws IOException
- Executes the filesystem operation.
- Specified by:
execute
in interface FileSystemAccess.FileSystemExecutor<Void>
- Parameters:
fs
- filesystem instance to use.
- Returns:
- void.
- Throws:
IOException
- thrown if an IO error occured.
Copyright © 2014 Apache Software Foundation. All Rights Reserved.