public class Console
extends org.h2.util.Tool
implements org.h2.server.ShutdownHandler
Constructor and Description |
---|
Console() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String... args)
When running without options, -tcp, -web, -browser and -pg are started.
|
void |
runTool(java.lang.String... args)
This tool starts the H2 Console (web-) server, as well as the TCP and PG
server.
|
void |
shutdown()
INTERNAL.
|
public static void main(java.lang.String... args) throws java.sql.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 argumentsjava.sql.SQLException
- on failurepublic void runTool(java.lang.String... args) throws java.sql.SQLException
runTool
in class org.h2.util.Tool
args
- the command line argumentsjava.sql.SQLException
- on failurepublic void shutdown()
shutdown
in interface org.h2.server.ShutdownHandler