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, setStorageRequired
isAvailableOutsideShell
public StorageCommand(ExitStatus exitStatus)
public void run(CommandContext ctx) throws CommandException
Command
com.redhat.thermostat.launcher.Launcher
will
present the exception message to the user.CommandException
public DBStartupConfiguration getConfiguration()
public boolean isStorageRequired()
Command
Storage
isStorageRequired
in interface Command
isStorageRequired
in class AbstractStateNotifyingCommand
Storage
is required.public boolean isAvailableInShell()
Command
isAvailableInShell
in interface Command
isAvailableInShell
in class AbstractCommand
Copyright © 2014. All rights reserved.