Package com.mapr.db.shell.commands
Class ShellCommands
java.lang.Object
com.mapr.db.shell.commands.ShellCommands
- All Implemented Interfaces:
org.springframework.shell.core.CommandMarker,org.springframework.shell.core.ExecutionProcessor
- Direct Known Subclasses:
FileCommands,SessionCommnds,TableCommands
@Component
public abstract class ShellCommands
extends Object
implements org.springframework.shell.core.ExecutionProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterReturningInvocation(org.springframework.shell.event.ParseResult invocationContext, Object result) Method called after successfully invoking the target command (described byParseResult).voidafterThrowingInvocation(org.springframework.shell.event.ParseResult invocationContext, Throwable thrown) Method called after invoking the target command (described byParseResult) had thrown an exception .org.springframework.shell.event.ParseResultbeforeInvocation(org.springframework.shell.event.ParseResult invocationContext) Method called before invoking the target command (described byParseResult).protected org.ojai.json.JsonOptionsgetCmdJsonOptions(String withTags, String pretty)
-
Field Details
-
session_
-
-
Constructor Details
-
ShellCommands
- Throws:
IOException
-
-
Method Details
-
getCmdJsonOptions
-
beforeInvocation
public org.springframework.shell.event.ParseResult beforeInvocation(org.springframework.shell.event.ParseResult invocationContext) Method called before invoking the target command (described byParseResult). Additionally, for advanced cases, the parse result itself effectively changing the invocation calling site.- Specified by:
beforeInvocationin interfaceorg.springframework.shell.core.ExecutionProcessor- Parameters:
invocationContext- target command context- Returns:
- the invocation target
-
afterReturningInvocation
public void afterReturningInvocation(org.springframework.shell.event.ParseResult invocationContext, Object result) Method called after successfully invoking the target command (described byParseResult).- Specified by:
afterReturningInvocationin interfaceorg.springframework.shell.core.ExecutionProcessor- Parameters:
invocationContext- target command contextresult- the invocation result
-
afterThrowingInvocation
public void afterThrowingInvocation(org.springframework.shell.event.ParseResult invocationContext, Throwable thrown) Method called after invoking the target command (described byParseResult) had thrown an exception .- Specified by:
afterThrowingInvocationin interfaceorg.springframework.shell.core.ExecutionProcessor- Parameters:
invocationContext- target command contextthrown- the thrown object
-