Package org.prevayler

Examples of org.prevayler.PrevaylerFactory.create()


        factory.configureSnapshotManager(this.snapshotManager);
        factory.configureTransactionFiltering(this.transactionFiltering);
        factory.configureTransactionLogFileAgeThreshold(this.transactionLogAgeThreshold);
        factory.configureTransactionLogFileSizeThreshold(this.transactionLogSizeThreshold);
        factory.configureTransientMode(this.transientMode);
        this.prevayler = factory.create();
    }
   
    /**
     * Destroy method for closing resources.
     */
 
View Full Code Here


    // Create an instance of the root object class and start the server
    //prevayler = PrevaylerFactory.createPrevayler(rootObjectClass.newInstance(), prevalenceBase);
    PrevaylerFactory factory = new PrevaylerFactory();
    factory.configurePrevalentSystem(rootObjectClass.newInstance());
    factory.configurePrevalenceDirectory(prevalenceBase);
    prevayler = factory.create();
    snapshotThread = new SnapshotThread(prevayler);
    snapshotThread.start();
  }

  private static void runNotificationServer() {
View Full Code Here

      System.out.println("Instanciando o Cliente");
        PrevaylerFactory factory = getPrevaylerFactory();
        factory.configureReplicationClient(getServerId(), PrevaylerFactory.DEFAULT_REPLICATION_PORT);
        factory.configurePrevalenceBase(Constants.PREVAYLER_DATA_DIRETORY);
//        factory.configurePrevalenceDirectory(Constants.PREVAYLER_DATA_DIRETORY);
        return factory.create();
    }

    public PrevaylerFactory getPrevaylerFactory() {
        PrevaylerFactory factory = new PrevaylerFactory();
        factory.configurePrevalentSystem(new PrevalentSystem());
View Full Code Here

    public Prevayler getPrevaylerClient() throws ClassNotFoundException, IOException {
      logger.info("Instanciando o Cliente");
        PrevaylerFactory factory = getPrevaylerFactory();
        factory.configureReplicationClient(serverIp, PrevaylerFactory.DEFAULT_REPLICATION_PORT);
    return factory.create();
    }

    public PrevaylerFactory getPrevaylerFactory() {
        PrevaylerFactory factory = new PrevaylerFactory();
        factory.configurePrevalentSystem(new PrevalentSystem());
View Full Code Here

    }

    public Prevayler getPrevaylerServer() throws IOException, ClassNotFoundException {
        logger.info("Instanciando Prevayler Server");
        PrevaylerFactory factory = getPrevaylerFactoryServer();
    return factory.create();
    }

    public PrevaylerFactory getPrevaylerFactoryServer() {
      PrevaylerFactory factory = new PrevaylerFactory();
        factory.configurePrevalentSystem(new PrevalentSystem());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.