Class ScriptCommand
- java.lang.Object
-
- org.apache.accumulo.shell.Shell.Command
-
- org.apache.accumulo.shell.commands.ScriptCommand
-
@Deprecated(since="2.1.0") public class ScriptCommand extends Shell.Command
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
Fields Modifier and Type Field Description protected org.apache.commons.cli.OptionargsDeprecated.protected org.apache.commons.cli.OptionengineDeprecated.protected org.apache.commons.cli.OptionfileDeprecated.protected org.apache.commons.cli.OptionfunctionDeprecated.protected org.apache.commons.cli.OptionlistDeprecated.protected org.apache.commons.cli.OptionobjectDeprecated.protected org.apache.commons.cli.OptionoutDeprecated.protected org.apache.commons.cli.OptionscriptDeprecated.
-
Constructor Summary
Constructors Constructor Description ScriptCommand()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stringdescription()Deprecated.intexecute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState)Deprecated.org.apache.commons.cli.OptionsgetOptions()Deprecated.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 Detail
-
list
protected org.apache.commons.cli.Option list
Deprecated.
-
engine
protected org.apache.commons.cli.Option engine
Deprecated.
-
script
protected org.apache.commons.cli.Option script
Deprecated.
-
file
protected org.apache.commons.cli.Option file
Deprecated.
-
args
protected org.apache.commons.cli.Option args
Deprecated.
-
out
protected org.apache.commons.cli.Option out
Deprecated.
-
function
protected org.apache.commons.cli.Option function
Deprecated.
-
object
protected org.apache.commons.cli.Option object
Deprecated.
-
-
Method Detail
-
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
public String 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
-
-