public class MockShell
extends org.apache.accumulo.core.util.shell.Shell
Modifier and Type | Field and Description |
---|---|
protected InputStream |
in |
protected Writer |
writer |
Constructor and Description |
---|
MockShell(InputStream in,
Writer writer) |
Modifier and Type | Method and Description |
---|---|
boolean |
config(String... args)
Configures the shell using the provided options.
|
static ByteArrayInputStream |
makeCommands(String... commands)
Convenience method to create the byte-array to hand to the console
|
void |
setConsoleInputStream(InputStream in) |
void |
setConsoleWriter(Writer writer) |
protected void |
setInstance(org.apache.commons.cli.CommandLine cl) |
int |
start() |
checkTableState, execCommand, getConnector, getDefaultPrompt, getExit, getExitCode, getFormatter, getFormatter, getPrincipal, getReader, getTableName, getToken, hasExited, isDebuggingEnabled, isMasking, isVerbose, main, printBinaryRecords, printBinaryRecords, printException, printInfo, printLines, printLines, printRecords, printRecords, printVerboseInfo, readMaskedLine, repeat, resetExitCode, setDebugging, setExit, setLogErrorsToConsole, setTableName, updateUser
protected InputStream in
protected Writer writer
public MockShell(InputStream in, Writer writer) throws IOException
IOException
public boolean config(String... args)
org.apache.accumulo.core.util.shell.Shell
config
in class org.apache.accumulo.core.util.shell.Shell
protected void setInstance(org.apache.commons.cli.CommandLine cl)
setInstance
in class org.apache.accumulo.core.util.shell.Shell
public int start() throws IOException
start
in class org.apache.accumulo.core.util.shell.Shell
IOException
public void setConsoleInputStream(InputStream in)
in
- the in to setpublic void setConsoleWriter(Writer writer)
writer
- the writer to setpublic static ByteArrayInputStream makeCommands(String... commands)
commands
- An array of commands to runCopyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.