org.apache.accumulo.core.util.shell
public abstract static class Shell.Command extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Shell.Command.CompletionSet |
Constructor and Description |
---|
Shell.Command() |
Modifier and Type | Method and Description |
---|---|
abstract String |
description() |
abstract int |
execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState) |
String |
getName() |
org.apache.commons.cli.Options |
getOptions() |
org.apache.commons.cli.Options |
getOptionsWithHelp() |
abstract int |
numArgs()
If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override the
usage() method. |
void |
printHelp(Shell shellState) |
void |
printHelp(Shell shellState,
int width) |
void |
registerCompletion(Token root,
Map<Shell.Command.CompletionSet,Set<String>> completion_set) |
void |
registerCompletionForCommands(Token root,
Map<Shell.Command.CompletionSet,Set<String>> completionSet) |
void |
registerCompletionForNamespaces(Token root,
Map<Shell.Command.CompletionSet,Set<String>> completionSet) |
void |
registerCompletionForTables(Token root,
Map<Shell.Command.CompletionSet,Set<String>> completionSet) |
void |
registerCompletionForUsers(Token root,
Map<Shell.Command.CompletionSet,Set<String>> completionSet) |
void |
registerCompletionGeneral(Token root,
Set<String> args,
boolean caseSens) |
String |
usage() |
public void registerCompletionGeneral(Token root, Set<String> args, boolean caseSens)
public void registerCompletionForTables(Token root, Map<Shell.Command.CompletionSet,Set<String>> completionSet)
public void registerCompletionForUsers(Token root, Map<Shell.Command.CompletionSet,Set<String>> completionSet)
public void registerCompletionForCommands(Token root, Map<Shell.Command.CompletionSet,Set<String>> completionSet)
public void registerCompletionForNamespaces(Token root, Map<Shell.Command.CompletionSet,Set<String>> completionSet)
public abstract int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception
Exception
public abstract String description()
public abstract int numArgs()
public String getName()
public void registerCompletion(Token root, Map<Shell.Command.CompletionSet,Set<String>> completion_set)
public final void printHelp(Shell shellState)
public final void printHelp(Shell shellState, int width)
public final org.apache.commons.cli.Options getOptionsWithHelp()
public String usage()
public org.apache.commons.cli.Options getOptions()
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.