|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.controller.console.Console
This is the C-JDBC controller console that allows remote administration and monitoring of any C-JDBC controller.
| Field Summary | |
private VirtualDatabaseAdmin |
adminModule
Virtual database administration console. |
private static java.lang.String |
bindName
Name used to bind the controller in the RMI registry. |
static CommandCompletorInterface |
COMPLETOR
Command completor to use. |
private VirtualDatabaseConsole |
consoleModule
Virtual database console. |
private ConsoleHelperInterface |
helper
Interface to the console helper. |
private static java.lang.String |
host
|
private static ControllerJmxClient |
jmx
|
private static java.lang.String |
port
|
| Constructor Summary | |
Console(ConsoleHelperInterface helper)
Creates a new Console instance. |
|
| Method Summary | |
private void |
addDriver(java.lang.String filename)
Sends a driver JAR file to the controller. |
private void |
bind()
Binds a C-JDBC controller. |
private static org.apache.commons.cli.Options |
createOptions()
Creates Options object that contains all available options
that can be used launching C-JDBC console. |
private void |
echo(java.lang.String echo)
|
private void |
getDump()
|
private void |
getInfo()
Gets information from the C-JDBC controller. |
void |
handlePrompt()
Main menu prompt handling. |
private void |
help()
Displays the help message. |
private void |
loadXML(java.lang.String filename)
Sends a XML configuration file to the controller. |
static void |
main(java.lang.String[] args)
Launchs the C-JDBC console. |
private static void |
printUsage(org.apache.commons.cli.Options options)
Displays usage message. |
private void |
refreshLog()
Forces logging system configuration refresh. |
private void |
shutdown(java.lang.String level)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final CommandCompletorInterface COMPLETOR
private ConsoleHelperInterface helper
private static java.lang.String bindName
private static ControllerJmxClient jmx
private static java.lang.String host
private static java.lang.String port
private VirtualDatabaseAdmin adminModule
private VirtualDatabaseConsole consoleModule
| Constructor Detail |
public Console(ConsoleHelperInterface helper)
Console instance.
helper - console helper| Method Detail |
private void bind()
throws java.lang.Exception
java.lang.Exception - if a error occurs
private void getInfo()
throws java.lang.Exception
java.lang.Exception - if a error occursprivate void refreshLog()
private void getDump()
private void loadXML(java.lang.String filename)
throws java.lang.Exception
filename - XML configuration file name
java.lang.Exceptionprivate void shutdown(java.lang.String level)
private void echo(java.lang.String echo)
private void addDriver(java.lang.String filename)
filename - name of the fileprivate void help()
public void handlePrompt()
public static void main(java.lang.String[] args)
-f or --file <filename>:
uses a given file as the source of commands instead of reading commands
interactively.-h or --help: displays usage
informations.-n or --name <name>:
name of the controller.-o or --host <port>:
host name where the RMI registry hosting-p or --port <port>:
port number of the RMI registry.-t or --text: allows to use the text
only console in interactive mode (the graphic console is launched by
default).-v or --version: displays version
informations.
If no host name, port number or controller name are specified, else the
default ControllerConstants.DEFAULT_NAMEhost name, the default
org.objectweb.cjdbc.controller.ControllerConstants#DEFAULT_RMI_PORT
port value and the default 'ControllerConstants.DEFAULT_NAME'
controller name are used.
args - command line arguments (see above)private static org.apache.commons.cli.Options createOptions()
Options object that contains all available options
that can be used launching C-JDBC console.
Options instanceprivate static void printUsage(org.apache.commons.cli.Options options)
options - available command line options
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||