Package org.rioproject.impl.persistence

Examples of org.rioproject.impl.persistence.PersistentStore


    SnapshotThread snapshotter;

    public StateManager(String logDirName, OpStringManagerController opStringMangerController) throws StoreException, IOException {
        opStringLogHandler = new OpStringLogHandler();
        opStringLogHandler.setOpStringMangerController(opStringMangerController);
        store = new PersistentStore(logDirName, opStringLogHandler, opStringLogHandler);
        snapshotter = new SnapshotThread(OpStringLogHandler.class.getName(), store);
        opStringLogHandler.setSnapshotter(snapshotter);
        store.snapshot();
    }
View Full Code Here


        String logDirName =
            (String)context.getConfiguration().getEntry(CONFIG_COMPONENT, "logDirectory", String.class, null);
        if(logDirName!=null) {
            /* LogHandler required when dealing with the ReliableLog */
            CybernodeLogHandler logHandler = new CybernodeLogHandler();
            store = new PersistentStore(logDirName, logHandler, logHandler);
            logger.debug("Cybernode: using absolute logdir path [{}]", store.getStoreLocation());
            store.snapshot();
            super.initialize(context, store);
        } else {
            super.initialize(context);
View Full Code Here

TOP

Related Classes of org.rioproject.impl.persistence.PersistentStore

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.