Search in sources :

Example 6 with TcpServer

use of org.h2.server.TcpServer in project h2database by h2database.

the class TestTools method testManagementDb.

private void testManagementDb() throws SQLException {
    int count = getSize(2, 10);
    for (int i = 0; i < count; i++) {
        Server tcpServer = Server.createTcpServer().start();
        tcpServer.stop();
        tcpServer = Server.createTcpServer("-tcpPassword", "abc").start();
        tcpServer.stop();
    }
}
Also used : Server(org.h2.tools.Server)

Aggregations

Server (org.h2.tools.Server)3 Socket (java.net.Socket)2 IOException (java.io.IOException)1 ServerSocket (java.net.ServerSocket)1 UnknownHostException (java.net.UnknownHostException)1 Connection (java.sql.Connection)1 SQLException (java.sql.SQLException)1 ConnectionInfo (org.h2.engine.ConnectionInfo)1 DbException (org.h2.message.DbException)1 TcpServer (org.h2.server.TcpServer)1 PgServer (org.h2.server.pg.PgServer)1 WebServer (org.h2.server.web.WebServer)1 AssertThrows (org.h2.test.utils.AssertThrows)1