This is the Sequoia controller console that allows remote administration and
monitoring of any Sequoia controller.
author: Emmanuel Cecchet author: Mathieu Peltier author: Nicolas Modrzyk version: 1.0
printError(String message) Prints an error message.
Use this method to print error messages coming either from
Sequoia controller or from the console.
public void
printError(String message, Exception e) Prints an error message (and displays the stack trace of an Exception if
the debug option is active).
Use this method to print error messages coming either from
Sequoia controller or from the console.
public void
printInfo(String message) Prints an info message.
Use this method to print info messages coming from the console.
public void
println(String s) Prints a String on the console.
Use this method to print things returned by Sequoia controller.
public Console(RmiJmxClient jmxClient, InputStream in, boolean interactive, boolean debug, boolean silent, boolean exitOnError, boolean sqlClientOnly) throws IOException(Code)
Creates a new Console instance.
Parameters: jmxClient - to connect to the jmxServer Parameters: in - the input stream to get the command from Parameters: interactive - if set to true will display prompt Parameters: debug - true if debug mode should be activated. Parameters: silent - true if silent mode is activated Parameters: exitOnError - true if the console should exit on errorin non interactive mode. Parameters: sqlClientOnly - set to true if the console shouldbehave as a sql client only throws: IOException -
Method Detail
enableMultilineStatements
public void enableMultilineStatements(boolean multilineStatementEnabled)(Code)
(ugly!) pass-through setter to enable/disabled multiline statement on the
VirtualDatabaseConsole from the command line options of the console
Parameters: multilineStatementEnabled - true if multiline stamementis enabled, false else See Also:VirtualDatabaseConsole.setRequestDelimiter(String)
Prints an error message.
Use this method to print error messages coming either from
Sequoia controller or from the console.
Parameters: message - error message to print
Prints an error message (and displays the stack trace of an Exception if
the debug option is active).
Use this method to print error messages coming either from
Sequoia controller or from the console.
Parameters: message - error message to print Parameters: e - an exception
Prints an info message.
Use this method to print info messages coming from the console.
An info message should not contain essential information that the user
can't deduce from the commands he/she typed.
Parameters: message - informational message to print
Reads a line from the console.
Parameters: prompt - the prompt to display the trimmed line read from the console throws: ConsoleException - if an error occured
Read password from the console.
Parameters: prompt - the promp to display the password read from the console throws: ConsoleException - if an error occured
Should this console display color in interactive mode? Warning, colors only
work on non Windows system.
Parameters: b - true if the console should display color (ignoredon Windows system).
setRequestDelimiter
public void setRequestDelimiter(String delimiter)(Code)
(ugly!) pass-through setter to set the request delimiter on the
VirtualDatabaseConsole from the command line options of the console
Parameters: delimiter - the String representing the request delimiter See Also:VirtualDatabaseConsole.setRequestDelimiter(String)