Package org.infinispan.cli.impl
Class ContextAwareCommandInvocation
java.lang.Object
org.infinispan.cli.impl.ContextAwareCommandInvocation
- All Implemented Interfaces:
org.aesh.command.invocation.CommandInvocation
public class ContextAwareCommandInvocation
extends Object
implements org.aesh.command.invocation.CommandInvocation
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Constructor Summary
ConstructorsConstructorDescriptionContextAwareCommandInvocation(org.aesh.command.invocation.CommandInvocation commandInvocation, Context context) -
Method Summary
Modifier and TypeMethodDescriptionorg.aesh.command.Executor<? extends org.aesh.command.invocation.CommandInvocation> buildExecutor(String line) voidexecuteCommand(String input) org.aesh.command.invocation.CommandInvocationConfigurationgetHelpInfo(String commandName) getPasswordInteractively(String prompt, String confirmPrompt) org.aesh.readline.Promptorg.aesh.command.shell.ShellgetShell()org.aesh.readline.action.KeyActioninput()org.aesh.readline.action.KeyActioninputLine(org.aesh.readline.Prompt prompt) voidvoidvoidvoidvoidvoidsetPrompt(org.aesh.readline.Prompt prompt) voidstop()
-
Constructor Details
-
ContextAwareCommandInvocation
public ContextAwareCommandInvocation(org.aesh.command.invocation.CommandInvocation commandInvocation, Context context)
-
-
Method Details
-
getShell
public org.aesh.command.shell.Shell getShell()- Specified by:
getShellin interfaceorg.aesh.command.invocation.CommandInvocation
-
setPrompt
public void setPrompt(org.aesh.readline.Prompt prompt) - Specified by:
setPromptin interfaceorg.aesh.command.invocation.CommandInvocation
-
getPrompt
public org.aesh.readline.Prompt getPrompt()- Specified by:
getPromptin interfaceorg.aesh.command.invocation.CommandInvocation
-
getHelpInfo
- Specified by:
getHelpInfoin interfaceorg.aesh.command.invocation.CommandInvocation
-
getHelpInfo
- Specified by:
getHelpInfoin interfaceorg.aesh.command.invocation.CommandInvocation
-
stop
public void stop()- Specified by:
stopin interfaceorg.aesh.command.invocation.CommandInvocation
-
getConfiguration
public org.aesh.command.invocation.CommandInvocationConfiguration getConfiguration()- Specified by:
getConfigurationin interfaceorg.aesh.command.invocation.CommandInvocation
-
input
- Specified by:
inputin interfaceorg.aesh.command.invocation.CommandInvocation- Throws:
InterruptedException
-
input
public org.aesh.readline.action.KeyAction input(long timeout, TimeUnit unit) throws InterruptedException - Specified by:
inputin interfaceorg.aesh.command.invocation.CommandInvocation- Throws:
InterruptedException
-
inputLine
- Specified by:
inputLinein interfaceorg.aesh.command.invocation.CommandInvocation- Throws:
InterruptedException
-
inputLine
- Specified by:
inputLinein interfaceorg.aesh.command.invocation.CommandInvocation- Throws:
InterruptedException
-
executeCommand
public void executeCommand(String input) throws org.aesh.command.CommandNotFoundException, org.aesh.command.parser.CommandLineParserException, org.aesh.command.validator.OptionValidatorException, org.aesh.command.validator.CommandValidatorException, org.aesh.command.CommandException, InterruptedException, IOException - Specified by:
executeCommandin interfaceorg.aesh.command.invocation.CommandInvocation- Throws:
org.aesh.command.CommandNotFoundExceptionorg.aesh.command.parser.CommandLineParserExceptionorg.aesh.command.validator.OptionValidatorExceptionorg.aesh.command.validator.CommandValidatorExceptionorg.aesh.command.CommandExceptionInterruptedExceptionIOException
-
buildExecutor
public org.aesh.command.Executor<? extends org.aesh.command.invocation.CommandInvocation> buildExecutor(String line) throws org.aesh.command.CommandNotFoundException, org.aesh.command.parser.CommandLineParserException, org.aesh.command.validator.OptionValidatorException, org.aesh.command.validator.CommandValidatorException, IOException - Specified by:
buildExecutorin interfaceorg.aesh.command.invocation.CommandInvocation- Throws:
org.aesh.command.CommandNotFoundExceptionorg.aesh.command.parser.CommandLineParserExceptionorg.aesh.command.validator.OptionValidatorExceptionorg.aesh.command.validator.CommandValidatorExceptionIOException
-
print
- Specified by:
printin interfaceorg.aesh.command.invocation.CommandInvocation
-
println
- Specified by:
printlnin interfaceorg.aesh.command.invocation.CommandInvocation
-
printf
-
print
- Specified by:
printin interfaceorg.aesh.command.invocation.CommandInvocation
-
println
- Specified by:
printlnin interfaceorg.aesh.command.invocation.CommandInvocation
-
getContext
-
getShellOutput
-
getShellError
-
getPasswordInteractively
public String getPasswordInteractively(String prompt, String confirmPrompt) throws InterruptedException - Throws:
InterruptedException
-