Examples of PrevalentSystem


Examples of br.com.visualmidia.persistence.PrevalentSystem

        return factory.create();
    }

    public PrevaylerFactory getPrevaylerFactory() {
        PrevaylerFactory factory = new PrevaylerFactory();
        factory.configurePrevalentSystem(new PrevalentSystem());
        factory.configurePrevalenceBase(Constants.PREVAYLER_DATA_DIRETORY);
//        factory.configurePrevalenceDirectory(Constants.PREVAYLER_DATA_DIRETORY);
        return factory;
    }
View Full Code Here

Examples of br.com.visualmidia.persistence.PrevalentSystem

    return factory.create();
    }

    public PrevaylerFactory getPrevaylerFactory() {
        PrevaylerFactory factory = new PrevaylerFactory();
        factory.configurePrevalentSystem(new PrevalentSystem());
        factory.configurePrevalenceBase(Constants.PREVAYLER_DATA_DIRETORY);
        factory.configureTransactionFiltering(false);
        return factory;
    }
View Full Code Here

Examples of br.com.visualmidia.persistence.PrevalentSystem

    return factory.create();
    }

    public PrevaylerFactory getPrevaylerFactoryServer() {
      PrevaylerFactory factory = new PrevaylerFactory();
        factory.configurePrevalentSystem(new PrevalentSystem());
        factory.configurePrevalenceBase(Constants.PREVAYLER_SERVER_DATA_DIRETORY);
        factory.configureReplicationServer(PrevaylerFactory.DEFAULT_REPLICATION_PORT);
        return factory;
    }
View Full Code Here

Examples of org.codehaus.aspectwerkz.persistence.prevayler.PrevalentSystem

    public void register(final String aspectComponentUuid) {
        try {
            synchronized (m_prevaylers) {

                final Prevayler prevayler = new SnapshotPrevayler(
                        new PrevalentSystem(),
                        TX_LOG_DIR + aspectComponentUuid);

                m_prevaylers.put(aspectComponentUuid, prevayler);

                startClockActorDaemon(prevayler);
View Full Code Here

Examples of org.springmodules.prevayler.system.PrevalentSystem

        }
    }
   
    public Object execute(SystemCallback callback) {
        logger.debug("Executing callback into prevalent system.");
        PrevalentSystem localSystem = (PrevalentSystem) this.configuration.getPrevaylerInstance().prevalentSystem();
        return localSystem.execute(callback);
    }
View Full Code Here

Examples of org.springmodules.prevayler.system.PrevalentSystem

    public CompositeTransactionCommand(List callbacks) {
        this.callbacks = callbacks;
    }
   
    public void executeOn(Object object, Date date) {
        PrevalentSystem system= (PrevalentSystem) object;
        Iterator it = this.callbacks.iterator();
        while (it.hasNext()) {
            PrevaylerCallback callback = (PrevaylerCallback) it.next();
            callback.doInTransaction(system);
        }
View Full Code Here

Examples of org.springmodules.prevayler.system.PrevalentSystem

    public TransactionCommand(PrevaylerCallback callback) {
        this.callback = callback;
    }
   
    public Object executeAndQuery(Object object, Date date) throws Exception {
        PrevalentSystem system= (PrevalentSystem) object;
        return callback.doInTransaction(system);
    }
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.