com.cloudera.hoop.fs
Class FSSetTimes

java.lang.Object
  extended by com.cloudera.hoop.fs.FSSetTimes
All Implemented Interfaces:
Hadoop.FileSystemExecutor<Void>

public class FSSetTimes
extends Object
implements Hadoop.FileSystemExecutor<Void>

Executor that performs a set-times Hadoop files system operation.


Constructor Summary
FSSetTimes(String path, long mTime, long aTime)
          Creates a set-times executor.
 
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
 

Constructor Detail

FSSetTimes

public 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.
Method Detail

execute

public Void execute(org.apache.hadoop.fs.FileSystem fs)
             throws IOException
Executes the filesystem operation.

Specified by:
execute in interface Hadoop.FileSystemExecutor<Void>
Parameters:
fs - filesystem instance to use.
Returns:
void.
Throws:
IOException - thrown if an IO error occured.


Copyright © 2012 Cloudera. All Rights Reserved.