com.cloudera.hoop.fs
Class FSSetPermission
java.lang.Object
com.cloudera.hoop.fs.FSSetPermission
- All Implemented Interfaces:
- Hadoop.FileSystemExecutor<Void>
public class FSSetPermission
- extends Object
- implements Hadoop.FileSystemExecutor<Void>
Executor that performs a set-permission Hadoop 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 |
FSSetPermission
public FSSetPermission(String path,
String permission)
- Creates a set-permission executor.
- Parameters:
path - path to set the permission.permission - permission to set.
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.