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 java.lang.Object implements org.springframework.shell.core.ExecutionProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected ShellSessionsession_
-
Constructor Summary
Constructors Modifier Constructor Description protectedShellCommands()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterReturningInvocation(org.springframework.shell.event.ParseResult invocationContext, java.lang.Object result)Method called after successfully invoking the target command (described byParseResult).voidafterThrowingInvocation(org.springframework.shell.event.ParseResult invocationContext, java.lang.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(java.lang.String withTags, java.lang.String pretty)
-
-
-
Field Detail
-
session_
protected ShellSession session_
-
-
Method Detail
-
getCmdJsonOptions
protected org.ojai.json.JsonOptions getCmdJsonOptions(java.lang.String withTags, java.lang.String pretty)
-
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, java.lang.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, java.lang.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
-
-