public class InfoCommand extends AbstractCommand implements CliSession.Action
log, name, paramParser| Constructor and Description |
|---|
InfoCommand() |
| Modifier and Type | Method and Description |
|---|---|
CliSession.Action |
getAction(CliSession session,
ParseContext ctx,
boolean complete,
Map<String,Object> params)
Process command line parameters and return action.
|
String |
getHelpSummary()
Get summarized help (typically a single line).
|
EnumSet<SessionMode> |
getSessionModes()
Get the
SessionMode(s) supported by this command. |
void |
run(CliSession session)
Perform some action using the given
CliSession while a transaction is open. |
getHelpDetail, getName, getParser, getUsage, parsepublic String getHelpSummary()
AbstractCommandgetHelpSummary in interface CommandgetHelpSummary in class AbstractCommandpublic CliSession.Action getAction(CliSession session, ParseContext ctx, boolean complete, Map<String,Object> params)
AbstractCommandgetAction in class AbstractCommandsession - CLI sessionctx - input to parsecomplete - false if parse is "for real", true if only for tab completion calculationparams - parsed parameters indexed by namepublic EnumSet<SessionMode> getSessionModes()
AbstractCommandSessionMode(s) supported by this command.
The implementation in AbstractCommand returns an EnumSet containing
SessionMode.CORE_API and SessionMode.JSIMPLEDB.
getSessionModes in interface CommandgetSessionModes in class AbstractCommandSessionModespublic void run(CliSession session) throws Exception
CliSession.ActionCliSession while a transaction is open.run in interface CliSession.Actionsession - session with open transactionException - if an error occursCopyright © 2016. All rights reserved.