|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.fs.shell.Command
org.apache.hadoop.fs.shell.FsCommand
org.apache.hadoop.fs.FsShellPermissions
org.apache.hadoop.fs.FsShellPermissions.Chown
public static class FsShellPermissions.Chown
Used to change owner and/or group of files
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.fs.FsShellPermissions |
|---|
FsShellPermissions.Chgrp, FsShellPermissions.Chmod, FsShellPermissions.Chown |
| Field Summary | |
|---|---|
static String |
DESCRIPTION
|
protected String |
group
|
static String |
NAME
|
protected String |
owner
|
static String |
USAGE
|
| Fields inherited from class org.apache.hadoop.fs.shell.Command |
|---|
args, err, exceptions, exitCode, name, numErrors, out, recursive |
| Constructor Summary | |
|---|---|
FsShellPermissions.Chown()
|
|
| Method Summary | |
|---|---|
protected void |
parseOwnerGroup(String ownerStr)
Parse the first argument into an owner and group |
protected void |
processOptions(LinkedList<String> args)
Must be implemented by commands to process the command line flags and check the bounds of the remaining arguments. |
protected void |
processPath(org.apache.hadoop.fs.shell.PathData item)
Hook for commands to implement an operation to be applied on each path for the command. |
| Methods inherited from class org.apache.hadoop.fs.FsShellPermissions |
|---|
registerCommands |
| Methods inherited from class org.apache.hadoop.fs.shell.FsCommand |
|---|
getCommandName, run, runAll |
| Methods inherited from class org.apache.hadoop.fs.shell.Command |
|---|
displayError, displayError, displayWarning, exitCodeForError, expandArgument, expandArguments, getDepth, getDescription, getName, getReplacementCommand, getUsage, isDeprecated, isRecursive, processArgument, processArguments, processNonexistentPath, processPathArgument, processPaths, processRawArguments, recursePath, run, setName, setRecursive |
| Methods inherited from class org.apache.hadoop.conf.Configured |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
public static final String USAGE
public static final String DESCRIPTION
protected String owner
protected String group
| Constructor Detail |
|---|
public FsShellPermissions.Chown()
| Method Detail |
|---|
protected void processOptions(LinkedList<String> args)
throws IOException
org.apache.hadoop.fs.shell.Command
processOptions in class org.apache.hadoop.fs.shell.Commandargs - the command line arguments
IOExceptionprotected void parseOwnerGroup(String ownerStr)
ownerStr - string describing new ownership
protected void processPath(org.apache.hadoop.fs.shell.PathData item)
throws IOException
org.apache.hadoop.fs.shell.Command
processPath in class org.apache.hadoop.fs.shell.Commanditem - a PathData object
IOException - if anything else goes wrong in the user-implementation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||