org.apache.accumulo.core.util.shell.commands
Class ScriptCommand
java.lang.Object
org.apache.accumulo.core.util.shell.Shell.Command
org.apache.accumulo.core.util.shell.commands.ScriptCommand
public class ScriptCommand
- extends Shell.Command
Field Summary |
protected org.apache.commons.cli.Option |
args
|
protected org.apache.commons.cli.Option |
engine
|
protected org.apache.commons.cli.Option |
file
|
protected org.apache.commons.cli.Option |
function
|
protected org.apache.commons.cli.Option |
list
|
protected org.apache.commons.cli.Option |
object
|
protected org.apache.commons.cli.Option |
out
|
protected org.apache.commons.cli.Option |
script
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ScriptCommand
public ScriptCommand()
execute
public int execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState)
throws Exception
- Specified by:
execute
in class Shell.Command
- Throws:
Exception
description
public String description()
- Specified by:
description
in class Shell.Command
numArgs
public int numArgs()
- Description copied from class:
Shell.Command
- If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override the
Shell.Command.usage()
method.
Otherwise, Shell.Command.usage()
does need to be overridden.
- Specified by:
numArgs
in class Shell.Command
getName
public String getName()
- Overrides:
getName
in class Shell.Command
getOptions
public org.apache.commons.cli.Options getOptions()
- Overrides:
getOptions
in class Shell.Command
Copyright © 2015 Apache Accumulo Project. All rights reserved.