public class StorageCommand extends AbstractStateNotifyingCommand
| Constructor and Description |
|---|
StorageCommand(ExitStatus exitStatus) |
| Modifier and Type | Method and Description |
|---|---|
DBStartupConfiguration |
getConfiguration() |
boolean |
isAvailableInShell()
Whether the command is available to be invoked from within the shell.
|
boolean |
isStorageRequired()
Whether the command depends on
Storage |
void |
run(CommandContext ctx)
Execute the command.
|
getNotifier, setStorageRequiredisAvailableOutsideShellpublic StorageCommand(ExitStatus exitStatus)
public void run(CommandContext ctx) throws CommandException
Commandcom.redhat.thermostat.launcher.Launcher will
present the exception message to the user.CommandExceptionpublic DBStartupConfiguration getConfiguration()
public boolean isStorageRequired()
CommandStorageisStorageRequired in interface CommandisStorageRequired in class AbstractStateNotifyingCommandStorage is required.public boolean isAvailableInShell()
CommandisAvailableInShell in interface CommandisAvailableInShell in class AbstractCommandCopyright © 2013. All Rights Reserved.