|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.fs.shell.Command
public abstract class Command
An abstract class for the execution of a file system command
Field Summary | |
---|---|
protected String[] |
args
|
protected FileSystem |
fs
|
Constructor Summary | |
---|---|
protected |
Command(FileSystem fs)
Constructor |
Method Summary | |
---|---|
abstract String |
getCommandName()
Return the command's name excluding the leading character - |
protected abstract void |
run(Path path)
Execute the command on the input path |
int |
runAll()
For each source path, execute the command |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final FileSystem fs
protected String[] args
Constructor Detail |
---|
protected Command(FileSystem fs)
Method Detail |
---|
public abstract String getCommandName()
protected abstract void run(Path path) throws IOException
path
- the input path
IOException
- if any error occurspublic int runAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |