Class ImportDirectoryCommand
- java.lang.Object
-
- org.apache.accumulo.shell.Shell.Command
-
- org.apache.accumulo.shell.commands.ImportDirectoryCommand
-
public class ImportDirectoryCommand extends Shell.Command
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet
-
-
Constructor Summary
Constructors Constructor Description ImportDirectoryCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()intexecute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState)org.apache.commons.cli.OptionsgetOptions()intnumArgs()If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override theShell.Command.usage()method.voidregisterCompletion(Token root, Map<Shell.Command.CompletionSet,Set<String>> completionSet)Stringusage()-
Methods inherited from class org.apache.accumulo.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral
-
-
-
-
Method Detail
-
description
public String description()
- Specified by:
descriptionin classShell.Command
-
execute
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws IOException, AccumuloException, AccumuloSecurityException, TableNotFoundException
- Specified by:
executein classShell.Command- Throws:
IOExceptionAccumuloExceptionAccumuloSecurityExceptionTableNotFoundException
-
numArgs
public int numArgs()
Description copied from class:Shell.CommandIf the number of arguments is not always zero (not including those arguments handled through Options), make sure to override theShell.Command.usage()method. Otherwise,Shell.Command.usage()does need to be overridden.- Specified by:
numArgsin classShell.Command
-
usage
public String usage()
- Overrides:
usagein classShell.Command
-
getOptions
public org.apache.commons.cli.Options getOptions()
- Overrides:
getOptionsin classShell.Command
-
registerCompletion
public void registerCompletion(Token root, Map<Shell.Command.CompletionSet,Set<String>> completionSet)
- Overrides:
registerCompletionin classShell.Command
-
-