Package org.hsqldb

Examples of org.hsqldb.Server$ServerThread


        if (isNetwork) {
            if (url == null) {
                url = "jdbc:hsqldb:hsql://localhost/test";
            }

            server = new Server();

            server.setDatabaseName(0, "test");
            server.setDatabasePath(0, "mem:test;sql.enforce_strict_size=true");
            server.setLogWriter(null);
            server.setErrWriter(null);
View Full Code Here


                }
            } catch (NameNotFoundException e) {
            }

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

   
    if(serverRequired.get()){
     
      log.info("Starting HSQL standalone DBMS...");
     
      server = new Server();
      lubricantLoggerWriter = new LubricantLoggerWriter(
          hsql,
          new Replace(new OneLogLineForEachFlush()"\\[[\\w\\W]*\\]: ", "") ,
          com.danidemi.jlubricant.slf4j.Logger.TRACE
      );
View Full Code Here

    OUT_DIR = System.getProperty("test.build.data", "/tmp") + "/dddbifout";
  }

  private void startHsqldbServer() {
    if (null == server) {
      server = new Server();
      server.setDatabasePath(0,
          System.getProperty("test.build.data", "/tmp") + "/" + DB_NAME);
      server.setDatabaseName(0, DB_NAME);
      server.start();
    }
View Full Code Here

    return props;
  }

  // Facilitate test cases
  protected Server getNewHSQLDBServer() {
    return new Server();
  }
View Full Code Here

        }
       
        // start Hypersonic server
        Properties hProps = loadPropertiesFrom( "tests/etc/db/hsql/server.properties" );
       
        hsqlServer = new Server();
        hsqlServer.setPort( Integer.valueOf( hProps.getProperty( "server.port" ) ) );
        hsqlServer.setDatabaseName( 0, hProps.getProperty( "server.dbname.0" ) );
        hsqlServer.setDatabasePath( 0, hProps.getProperty( "server.database.0" ) );
        hsqlServer.start();
       
View Full Code Here

    protected HsqlProperties getServerProperties( String[] args ) {
      return super.getServerProperties( args );
    }

    protected Server getNewHSQLDBServer() {
      Server rtn = super.getNewHSQLDBServer();
      rtn.setLogWriter( logWriter );
      return rtn;
    }
View Full Code Here

        .setProperty("mapred.map.max.attempts", "1");
    pigServer.getPigContext().getProperties()
        .setProperty("mapred.reduce.max.attempts", "1");
    System.out.println("Pig server initialized successfully");
    // Initialise DBServer
    dbServer = new Server();
    dbServer.setDatabaseName(0, "batchtest");
    // dbServer.setDatabasePath(0, "mem:test;sql.enforce_strict_size=true");
    dbServer.setDatabasePath(0,
        "file:/tmp/batchtest;sql.enforce_strict_size=true");
    dbServer.setLogWriter(null);
View Full Code Here

            }

            String databasePath = hsqlPath + "/" + databaseName;
            url = "jdbc:hsqldb:hsql://localhost:" + port + "/" + databaseName;

            Server server = new Server();
            server.setDatabaseName(0, databaseName);

            // ServletContext sc = sce.getServletContext();
            server.setDatabasePath(0, databasePath);
            server.setPort(port);
            server.setSilent(true);
            server.start();
            Thread.sleep(WAIT_TIME);
        } catch (IOException ex) {
            System.out.println("HsqldbListener : contextInitialized : error : "
                    + ex);
        } catch (InterruptedException ex) {
View Full Code Here

public class TestDatabase {
    private DataSource ds;
    private Server hsqlServer;

    public void setUpDatabase() throws Exception {
        hsqlServer = new Server();

        hsqlServer.setLogWriter(null);
        hsqlServer.setSilent(true);

        hsqlServer.setDatabaseName(0, "reportingDb");
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.