提交 2531186c authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 f9d01256
...@@ -64,7 +64,7 @@ public class Console implements ActionListener, MouseListener { ...@@ -64,7 +64,7 @@ public class Console implements ActionListener, MouseListener {
System.out.println(web.getStatus()); System.out.println(web.getStatus());
} }
} }
Server tcp = null, odbc = null, pg = null; Server tcp = null, pg = null;
try { try {
tcp = Server.createTcpServer(args); tcp = Server.createTcpServer(args);
tcp.start(); tcp.start();
...@@ -75,16 +75,6 @@ public class Console implements ActionListener, MouseListener { ...@@ -75,16 +75,6 @@ public class Console implements ActionListener, MouseListener {
System.out.println(tcp.getStatus()); System.out.println(tcp.getStatus());
} }
} }
try {
odbc = Server.createOdbcServer(args);
odbc.start();
} catch(SQLException e) {
if(odbc == null) {
e.printStackTrace();
} else {
System.out.println(odbc.getStatus());
}
}
try { try {
pg = Server.createPgServer(args); pg = Server.createPgServer(args);
pg.start(); pg.start();
......
...@@ -33,7 +33,7 @@ public class Server implements Runnable { ...@@ -33,7 +33,7 @@ public class Server implements Runnable {
private void showUsage() { private void showUsage() {
System.out.println("java "+getClass().getName() + " [options]"); System.out.println("java "+getClass().getName() + " [options]");
System.out.println("By default, -tcp, -web, -browser and -odbc are started"); System.out.println("By default, -tcp, -web, -browser and -pg are started");
System.out.println("-tcp (start the TCP Server)"); System.out.println("-tcp (start the TCP Server)");
System.out.println("-tcpPort <port> (default: " + TcpServer.DEFAULT_PORT+")"); System.out.println("-tcpPort <port> (default: " + TcpServer.DEFAULT_PORT+")");
System.out.println("-tcpSSL [true|false]"); System.out.println("-tcpSSL [true|false]");
...@@ -48,14 +48,14 @@ public class Server implements Runnable { ...@@ -48,14 +48,14 @@ public class Server implements Runnable {
System.out.println("-webAllowOthers [true|false}"); System.out.println("-webAllowOthers [true|false}");
System.out.println("-browser (start a browser)"); System.out.println("-browser (start a browser)");
System.out.println("-odbc (start the ODBC Server)");
System.out.println("-odbcPort <port> (default: " + OdbcServer.DEFAULT_PORT+")");
System.out.println("-odbcAllowOthers [true|false]");
System.out.println("-pg (start the PG Server)"); System.out.println("-pg (start the PG Server)");
System.out.println("-pgPort <port> (default: " + PgServer.DEFAULT_PORT+")"); System.out.println("-pgPort <port> (default: " + PgServer.DEFAULT_PORT+")");
System.out.println("-pgAllowOthers [true|false]"); System.out.println("-pgAllowOthers [true|false]");
System.out.println("-odbc (start the ODBC Server)");
System.out.println("-odbcPort <port> (default: " + OdbcServer.DEFAULT_PORT+")");
System.out.println("-odbcAllowOthers [true|false]");
System.out.println("-ftp (start the FTP Server)"); System.out.println("-ftp (start the FTP Server)");
System.out.println("-ftpPort <port> (default: " + Constants.DEFAULT_FTP_PORT+")"); System.out.println("-ftpPort <port> (default: " + Constants.DEFAULT_FTP_PORT+")");
System.out.println("-ftpDir <directory> (default: " + FtpServer.DEFAULT_ROOT+", use jdbc:... to access a database)"); System.out.println("-ftpDir <directory> (default: " + FtpServer.DEFAULT_ROOT+", use jdbc:... to access a database)");
...@@ -82,8 +82,8 @@ public class Server implements Runnable { ...@@ -82,8 +82,8 @@ public class Server implements Runnable {
* </li><li>-web (start the Web Server / H2 Console application) * </li><li>-web (start the Web Server / H2 Console application)
* </li><li>-tcp (start the TCP Server) * </li><li>-tcp (start the TCP Server)
* </li><li>-tcpShutdown {url} (shutdown the running TCP Server, URL example: tcp://localhost:9094) * </li><li>-tcpShutdown {url} (shutdown the running TCP Server, URL example: tcp://localhost:9094)
* </li><li>-odbc (start the ODBC Server)
* </li><li>-pg (start the PG Server) * </li><li>-pg (start the PG Server)
* </li><li>-odbc (start the ODBC Server)
* </li><li>-browser (start a browser and open a page to connect to the Web Server) * </li><li>-browser (start a browser and open a page to connect to the Web Server)
* </li><li>-log [true|false] (enable or disable logging) * </li><li>-log [true|false] (enable or disable logging)
* </li><li>-baseDir {directory} (sets the base directory for database files; not for H2 Console) * </li><li>-baseDir {directory} (sets the base directory for database files; not for H2 Console)
...@@ -165,7 +165,7 @@ public class Server implements Runnable { ...@@ -165,7 +165,7 @@ public class Server implements Runnable {
if(startDefaultServers) { if(startDefaultServers) {
tcpStart = true; tcpStart = true;
pgStart = true; pgStart = true;
odbcStart = true; odbcStart = false;
webStart = true; webStart = true;
browserStart = true; browserStart = true;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论