| java.lang.Object org.continuent.sequoia.console.text.commands.ConsoleCommand
All known Subclasses: org.continuent.sequoia.console.text.commands.sqlconsole.SetMaxRows, org.continuent.sequoia.console.text.commands.controller.Connect, org.continuent.sequoia.console.text.commands.Quit, org.continuent.sequoia.console.text.commands.sqlconsole.SetReadOnly, org.continuent.sequoia.console.text.commands.controller.GetXml, org.continuent.sequoia.console.text.commands.History, org.continuent.sequoia.console.text.commands.controller.Bind, org.continuent.sequoia.console.text.commands.sqlconsole.ToggleResultSetDisplay, org.continuent.sequoia.console.text.commands.sqlconsole.SetSavePoint, org.continuent.sequoia.console.text.commands.Help, org.continuent.sequoia.console.text.commands.controller.LoadVirtualDatabase, org.continuent.sequoia.console.text.commands.controller.ListDatabases, org.continuent.sequoia.console.text.commands.controller.AddDriver, org.continuent.sequoia.console.text.commands.sqlconsole.SetTimeout, org.continuent.sequoia.console.text.commands.controller.RefreshLogs, org.continuent.sequoia.console.text.commands.controller.LoadDriver, org.continuent.sequoia.console.text.commands.controller.ShowLoggingConfig, org.continuent.sequoia.console.text.commands.sqlconsole.SetIsolation, org.continuent.sequoia.console.text.commands.sqlconsole.ShowTables, org.continuent.sequoia.console.text.commands.sqlconsole.Rollback, org.continuent.sequoia.console.text.commands.sqlconsole.Begin, org.continuent.sequoia.console.text.commands.sqlconsole.Load, org.continuent.sequoia.console.text.commands.dbadmin.AbstractAdminCommand, org.continuent.sequoia.console.text.commands.controller.ShutdownVirtualDatabase, org.continuent.sequoia.console.text.commands.sqlconsole.Commit, org.continuent.sequoia.console.text.commands.sqlconsole.CallStoredProcedure, org.continuent.sequoia.console.text.commands.controller.Shutdown, org.continuent.sequoia.console.text.commands.sqlconsole.SetFetchSize, org.continuent.sequoia.console.text.commands.controller.SaveConfiguration, org.continuent.sequoia.console.text.commands.controller.Admin,
ConsoleCommand | public ConsoleCommand(AbstractConsoleModule module)(Code) | | Creates a new ConsoleCommand.java object
Parameters: module - module that owns this commands |
checkJmxConnectionToController | protected void checkJmxConnectionToController() throws ConsoleException(Code) | | Check that a JMX connection is established with a controller. If no
connection is available, a ConsoleException is thrown indicating that the
console must be connected to a controller in order to execute the command.
throws: ConsoleException - if no JMX connection is available |
execute | public void execute(String commandText) throws Exception(Code) | | Check if the JMX connection is still valid. Otherwise reconnect.
Parameters: commandText - the parameters to execute the command with throws: Exception - if fails |
getCommandDescription | abstract public String getCommandDescription()(Code) | | Get the description of the command
String of the command description |
getCommandName | abstract public String getCommandName()(Code) | | Get the name of the command
String of the command name |
getCommandParameters | public String getCommandParameters()(Code) | | Return a String description of the parameters of this
command.
String like <driverPathName> |
getUsage | public String getUsage()(Code) | | Get the usage of the command.
String of the command usage () |
parse | abstract public void parse(String commandText) throws Exception(Code) | | Parse the text of the command
Parameters: commandText - the command text throws: Exception - if connection with the mbean server is lost or commanddoes not have the proper format |
|
|