public abstract class SnapshotSubcommand extends AbstractCommand<Object>
| Modifier and Type | Field and Description |
|---|---|
protected Object |
cmdArg
Command argument.
|
protected static String |
SNAPSHOT_NAME_ARG
Snapshot name argument.
|
verbose| Modifier | Constructor and Description |
|---|---|
protected |
SnapshotSubcommand(String name,
Class<?> taskCls) |
| Modifier and Type | Method and Description |
|---|---|
Object |
arg() |
Object |
execute(GridClientConfiguration clientCfg,
Logger log)
Actual command execution.
|
protected Map<String,String> |
generalUsageOptions() |
String |
name() |
void |
parseArguments(CommandArgIterator argIter)
Parse command-specific arguments.
|
protected void |
printResult(Object res,
Logger log)
Prints result of command execution.
|
execute, usageCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfirmationPrompt, experimental, extendToLen, prepareConfirmation, printUsage, startClient, startClientBeforeNodeStart, usage, usage, usageParamsprotected static final String SNAPSHOT_NAME_ARG
protected Object cmdArg
public Object execute(GridClientConfiguration clientCfg, Logger log) throws Exception
clientCfg - Thin client configuration if connection to cluster is necessary.log - Logger to use.Exception - If error occur.public Object arg()
Command.parseArguments(CommandArgIterator) call.public void parseArguments(CommandArgIterator argIter)
argIter - Argument iterator.public String name()
protected Map<String,String> generalUsageOptions()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022