Class ScriptCommand
java.lang.Object
org.apache.accumulo.shell.Shell.Command
org.apache.accumulo.shell.commands.ScriptCommand
Deprecated.
since 2.0; this command shouldn't be used; The script command is deprecated; use
jshell for scripting instead
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.commons.cli.OptionDeprecated.protected org.apache.commons.cli.OptionDeprecated.protected org.apache.commons.cli.OptionDeprecated.protected org.apache.commons.cli.OptionDeprecated.protected org.apache.commons.cli.OptionDeprecated.protected org.apache.commons.cli.OptionDeprecated.protected org.apache.commons.cli.OptionDeprecated.protected org.apache.commons.cli.OptionDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.intDeprecated.org.apache.commons.cli.OptionsDeprecated.intnumArgs()Deprecated.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
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
-
Field Details
-
list
protected org.apache.commons.cli.Option listDeprecated. -
engine
protected org.apache.commons.cli.Option engineDeprecated. -
script
protected org.apache.commons.cli.Option scriptDeprecated. -
file
protected org.apache.commons.cli.Option fileDeprecated. -
args
protected org.apache.commons.cli.Option argsDeprecated. -
out
protected org.apache.commons.cli.Option outDeprecated. -
function
protected org.apache.commons.cli.Option functionDeprecated. -
object
protected org.apache.commons.cli.Option objectDeprecated.
-
-
Constructor Details
-
ScriptCommand
public ScriptCommand()Deprecated.
-
-
Method Details
-
execute
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception Deprecated.- Specified by:
executein classShell.Command- Throws:
Exception
-
description
Deprecated.- Specified by:
descriptionin classShell.Command
-
numArgs
public int numArgs()Deprecated.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
-
getOptions
public org.apache.commons.cli.Options getOptions()Deprecated.- Overrides:
getOptionsin classShell.Command
-