Package org.hsqldb

Examples of org.hsqldb.Server$ServerThread


    protected void startServer() {
      System.out.println("setup db server");
        if (isNetwork) {
            serverProps = "database.0=mem:memorydb";
            url         = "jdbc:hsqldb:hsql://localhost/memorydb";
            server      = new Server();
            server.putPropertiesFromString(serverProps);
            server.setLogWriter(null);
            server.setErrWriter(null);
            server.start();
            System.out.println("server " + url + " started");
View Full Code Here


                }
            } catch (NameNotFoundException e) {
            }

            // create the server
            server = new Server();
            // add the silent property
            properties.setProperty(sc_key_silent, "true");
            // set the log and error writers
            server.setLogWriter(new HsqlPrintWriter(false));
            server.setErrWriter(new HsqlPrintWriter(true));
View Full Code Here

    {
       
        // start Hypersonic server
        Properties hProps = loadPropertiesFrom( "target/test-classes/jspwiki-custom.properties" );
       
        hsqlServer = new Server();
        hsqlServer.setSilent(true);   // be quiet during junit tests
        hsqlServer.setLogWriter(null)// and even more quiet
        // pre-checks
        hsqlServer.checkRunning( false ); // throws RuntimeException if running
       
View Full Code Here

        // course, be overridden by whatever, if any, security policy
        // is in place.
        ServerConfiguration.translateDefaultNoSystemExitProperty(props);

        // finished setting up properties;
        server = new Server();

        server.setProperties(props);


        server.start();
View Full Code Here

    {
       
        // start Hypersonic server
        Properties hProps = loadPropertiesFrom( "tests/etc/db/hsql/server.properties" );
       
        hsqlServer = new Server();
        // pre-checks
        hsqlServer.checkRunning( false ); // throws RuntimeException if running
       
        // configure
        hsqlServer.setPort( Integer.valueOf( hProps.getProperty( "server.port" ) ) );
View Full Code Here

public class HsqlJDBCServer {
   
    private Server _hsqlServer;
   
    public HsqlJDBCServer(String hsqlPath, int port) {
        _hsqlServer = new Server();
        _hsqlServer.setNoSystemExit(true);
        _hsqlServer.setPort(port);
        _hsqlServer.setRestartOnShutdown(false);
        _hsqlServer.setSilent(true);
        _hsqlServer.setTls(false);
View Full Code Here

        TMP_DIR = System.getProperty("user.dir") + "/build/test/";
        dblocation = TMP_DIR + "batchtest";
        url = "jdbc:hsqldb:file:" + dblocation
               + ";hsqldb.default_table_type=cached;hsqldb.cache_rows=100";
        // Initialise DBServer
        dbServer = new Server();
        dbServer.setDatabaseName(0, "batchtest");
        // dbServer.setDatabasePath(0, "mem:test;sql.enforce_strict_size=true");
        dbServer.setDatabasePath(0,
                            "file:" + TMP_DIR + "batchtest;sql.enforce_strict_size=true");
        dbServer.setLogWriter(null);
View Full Code Here

            } catch (final NameNotFoundException e) {
                //Ignore
            }

            // create the server
            server = new Server();
            // add the silent property
            properties.setProperty(sc_key_silent, "true");
            // set the log and error writers
            server.setLogWriter(new HsqlPrintWriter(false));
            server.setErrWriter(new HsqlPrintWriter(true));
View Full Code Here

  private boolean startHsqldb = true;

  private void startHsqldbServer() {
    log.info("Starting HSQLDB server");
    server = new Server();
    server.setDatabasePath(0,
        System.getProperty("test.build.data", "/tmp") + "/goratest");
    server.setDatabaseName(0, "goratest");
    server.setDaemon(true);
    server.start();
View Full Code Here

        TMP_DIR = System.getProperty("user.dir") + "/build/test/";
        dblocation = TMP_DIR + "batchtest";
        url = "jdbc:hsqldb:file:" + dblocation
               + ";hsqldb.default_table_type=cached;hsqldb.cache_rows=100";
        // Initialise DBServer
        dbServer = new Server();
        dbServer.setDatabaseName(0, "batchtest");
        // dbServer.setDatabasePath(0, "mem:test;sql.enforce_strict_size=true");
        dbServer.setDatabasePath(0,
                            "file:" + TMP_DIR + "batchtest;sql.enforce_strict_size=true");
        dbServer.setLogWriter(null);
View Full Code Here

TOP

Related Classes of org.hsqldb.Server$ServerThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.