|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.console.text.ConsoleLauncher
This class defines a ConsoleLauncher
Constructor Summary | |
ConsoleLauncher()
|
Method Summary | |
private static org.apache.commons.cli.Options |
createOptions()
Creates Options object that contains all available options
that can be used launching C-JDBC console. |
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. |
static void |
startGuiConsole()
Starts the gui |
static void |
startTextConsole(org.apache.commons.cli.CommandLine commandLine)
Starts the text console with the given commandline |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConsoleLauncher()
Method Detail |
public static void main(java.lang.String[] args) throws java.lang.Exception
-d
or --debug
: show stack trace when
error occurs.-f
or --file
: use a given file as the
source of commands instead of reading commands interactively.-h
or --help
: displays usage
information.-i
or --ip
: IP address of the host name
where the JMX Server hosting the controller is running (the default is
'0.0.0.0').-n
or --nocolor
: do not print colors in
interactive mode for supported systems.-p
or --port
: JMX/RMI Port number of
(the default is
JmxConstants.DEFAULT_JMX_RMI_PORT
).
-s
or --secret
: password for JMX
connection.-u
or --username
: username for JMX
connection.-v
or --version
: displays version
information.
args
- command line arguments (see above)
java.lang.Exception
- if failspublic static void startGuiConsole() throws java.lang.Exception
java.lang.Exception
- if cannot load gui(probably no graphics)public static void startTextConsole(org.apache.commons.cli.CommandLine commandLine) throws java.lang.Exception
commandLine
- parameters for the text console
java.lang.Exception
- if failsprivate 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 |