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() |
assertLocalRootNotNullgetLocalServerRestClient, getSubCommandName, isVisibleInHelp, prompt, promptPasswordpublic RepairDatabaseSubCommand()
public String getSubCommandDescription()
SubCommandgetSubCommandDescription in class SubCommandpublic void prepare() throws Exception
SubCommandSubCommand.run().
Implementors should always invoked the super-method when overriding!
prepare in class SubCommandWithExistingLocalRepoException - in case, the preparation failed.SubCommand.cleanUp()public void run() throws Exception
run in class SubCommandExceptionpublic void cleanUp() throws Exception
SubCommandSubCommand.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 SubCommandException - in case, cleaning up failed.SubCommand.prepare()Copyright © 2013–2017. All rights reserved.