public static class FsShellPermissions.Chown extends FsShellPermissions
FsShellPermissions.Chgrp, FsShellPermissions.Chmod, FsShellPermissions.Chown
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION |
protected String |
group |
static String |
NAME |
protected String |
owner |
static String |
USAGE |
Constructor and Description |
---|
FsShellPermissions.Chown() |
Modifier and Type | Method and Description |
---|---|
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(PathData item)
Hook for commands to implement an operation to be applied on each
path for the command.
|
registerCommands
getCommandName, run, runAll
displayError, displayError, displayWarning, exitCodeForError, expandArgument, expandArguments, getDepth, getDescription, getName, getReplacementCommand, getUsage, isDeprecated, isRecursive, postProcessPath, processArgument, processArguments, processNonexistentPath, processPathArgument, processPaths, processRawArguments, recursePath, run, setName, setRecursive
getConf, setConf
public static final String NAME
public static final String USAGE
public static final String DESCRIPTION
protected String owner
protected String group
protected void processOptions(LinkedList<String> args) throws IOException
Command
processOptions
in class Command
args
- the command line argumentsIOException
protected void parseOwnerGroup(String ownerStr)
ownerStr
- string describing new ownershipprotected void processPath(PathData item) throws IOException
Command
processPath
in class Command
item
- a PathData
objectIOException
- if anything else goes wrong in the user-implementationCopyright © 2013 Apache Software Foundation. All rights reserved.