Package org.hsqldb

Examples of org.hsqldb.Server$ServerThread


    if(engine!=null)
      return engine;   
    HSQLEngine engine = new HSQLEngine();
    if(!dataPath.endsWith(File.separator))     
      dataPath += File.separator;
    hsqldb = new Server();   
    if(port>0)
      hsqldb.setPort(port);   
    if (dbn != null){
      hsqldb.setDatabaseName(0, dbn);
      dataPath+=dbn;
View Full Code Here


     * Init method.<br/> This method is called before the start method.
     * @throws EZBComponentException if the initialization has failed.
     */
    public void init() throws EZBComponentException {

        this.server = new Server();
        // Remove all traces if level != DEBUG
        if (!logger.isDebugEnabled()) {
            this.server.setLogWriter(null);
            this.server.setErrWriter(null);
            this.server.setSilent(true);
View Full Code Here

      props.setProperty("server.silent", "true");
      props.setProperty("server.no_system_exit", "true");
      props.setProperty("server.port", 27862);
      props.setProperty("server.address", ipAddressOrHostName);

      hsqldbServer = new Server();
      hsqldbServer.setLogWriter(null);
      hsqldbServer.setProperties(props);
      hsqldbServer.start();

      log.debug("started " + config.getDatabaseType() + " in-VM");
View Full Code Here

     * @throws Exception
     */
    public void start() throws Exception {
        if (serverMode) {
            if (server == null) {
                server = new Server();
                server.setLogWriter(log.isDebugEnabled() ? new PrintWriter(new LoggingPrintWriter()) : new PrintWriter(
                                new SinkPrintWiter()));
                server.setNoSystemExit(true);
                server.setProperties(properties);
            }
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

        reader.close();*/
  }


  private static void startHsqldbServer() {
    server = new Server();
    server.setDatabasePath(0, System.getProperty("test.build.data", "/tmp")
        + "/URLAccess");
    server.setDatabaseName(0, "URLAccess");
    server.start();
  }
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

  private final Server server;

 
  public DatabaseListener() {
    server = new Server();
    server.setDatabaseName(0, "geodojodb");
    server.setDatabasePath(0, "db/geodojodb");
    server.setPort(9001);
    server.setSilent(false);
  }
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

                }
            } 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

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.