public class Console extends Tool implements ActionListener, MouseListener, WindowListener, ShutdownHandler
Constructor and Description |
---|
Console() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
INTERNAL
|
static void |
main(String... args)
When running without options, -tcp, -web, -browser and -pg are started.
|
void |
mouseClicked(MouseEvent e)
INTERNAL
|
void |
mouseEntered(MouseEvent e)
INTERNAL
|
void |
mouseExited(MouseEvent e)
INTERNAL
|
void |
mousePressed(MouseEvent e)
INTERNAL
|
void |
mouseReleased(MouseEvent e)
INTERNAL
|
void |
runTool(String... args)
This tool starts the H2 Console (web-) server, as well as the TCP and PG
server.
|
void |
shutdown()
INTERNAL.
|
void |
windowActivated(WindowEvent e)
INTERNAL
|
void |
windowClosed(WindowEvent e)
INTERNAL
|
void |
windowClosing(WindowEvent e)
INTERNAL
|
void |
windowDeactivated(WindowEvent e)
INTERNAL
|
void |
windowDeiconified(WindowEvent e)
INTERNAL
|
void |
windowIconified(WindowEvent e)
INTERNAL
|
void |
windowOpened(WindowEvent e)
INTERNAL
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, throwUnsupportedOption
public static void main(String... args) throws SQLException
[-help] or [-?] | Print the list of options |
[-url] | Start a browser and connect to this URL |
[-driver] | Used together with -url: the driver |
[-user] | Used together with -url: the user name |
[-password] | Used together with -url: the password |
[-web] | Start the web server with the H2 Console |
[-tool] | Start the icon or window that allows to start a browser |
[-browser] | Start a browser connecting to the web server |
[-tcp] | Start the TCP server |
[-pg] | Start the PG server |
args
- the command line argumentsSQLException
public void runTool(String... args) throws SQLException
runTool
in class Tool
args
- the command line argumentsSQLException
public void shutdown()
shutdown
in interface ShutdownHandler
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.