public class RepairDatabaseSubCommand extends SubCommandWithExistingLocalRepo
SubCommand
implementation for repairing a database.local, localFile, localPathPrefix, localRoot
Constructor and Description |
---|
RepairDatabaseSubCommand() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Invoked after
SubCommand.run() . |
String |
getSubCommandDescription()
Get the description for this sub-command.
|
void |
prepare()
Invoked before
SubCommand.run() . |
void |
run() |
assertLocalRootNotNull
getLocalServerRestClient, getSubCommandName, isVisibleInHelp, prompt, promptPassword
public RepairDatabaseSubCommand()
public String getSubCommandDescription()
SubCommand
getSubCommandDescription
in class SubCommand
public void prepare() throws Exception
SubCommand
SubCommand.run()
.
Implementors should always invoked the super-method when overriding!
prepare
in class SubCommandWithExistingLocalRepo
Exception
- in case, the preparation failed.SubCommand.cleanUp()
public void run() throws Exception
run
in class SubCommand
Exception
public void cleanUp() throws Exception
SubCommand
SubCommand.run()
.
This method is always invoked, when SubCommand.prepare()
was invoked - even if SubCommand.run()
failed with an exception.
Implementors should always invoked the super-method when overriding (preferably at the end)!
cleanUp
in class SubCommand
Exception
- in case, cleaning up failed.SubCommand.prepare()
Copyright © 2013–2019. All rights reserved.