Class ScriptCommand
- java.lang.Object
-
- org.apache.accumulo.shell.Shell.Command
-
- org.apache.accumulo.shell.commands.ScriptCommand
-
public class ScriptCommand extends Shell.Command
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.cli.Optionargsprotected org.apache.commons.cli.Optionengineprotected org.apache.commons.cli.Optionfileprotected org.apache.commons.cli.Optionfunctionprotected org.apache.commons.cli.Optionlistprotected org.apache.commons.cli.Optionobjectprotected org.apache.commons.cli.Optionoutprotected org.apache.commons.cli.Optionscript
-
Constructor Summary
Constructors Constructor Description ScriptCommand()
-
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)StringgetName()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.-
Methods inherited from class org.apache.accumulo.shell.Shell.Command
getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
-
-
-
-
Field Detail
-
list
protected org.apache.commons.cli.Option list
-
engine
protected org.apache.commons.cli.Option engine
-
script
protected org.apache.commons.cli.Option script
-
file
protected org.apache.commons.cli.Option file
-
args
protected org.apache.commons.cli.Option args
-
out
protected org.apache.commons.cli.Option out
-
function
protected org.apache.commons.cli.Option function
-
object
protected org.apache.commons.cli.Option object
-
-
Method Detail
-
execute
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception
- Specified by:
executein classShell.Command- Throws:
Exception
-
description
public String description()
- Specified by:
descriptionin classShell.Command
-
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
-
getName
public String getName()
- Overrides:
getNamein classShell.Command
-
getOptions
public org.apache.commons.cli.Options getOptions()
- Overrides:
getOptionsin classShell.Command
-
-