Package org.chaidb.db.transaction.recover

Examples of org.chaidb.db.transaction.recover.TransactionRecover.doRecover()


            // This is a request from Sequoia.
            log.info("Begin normal recovery...");
            long begin = System.currentTimeMillis();
            txnRecover = Db.getTxnManager().setRecover(TransactionRecover.NORMAL_RECOVER);
            try {
                txnRecover.doRecover();
                long end = System.currentTimeMillis();
                System.out.println("[" + new Date().toString() + "] Recovery finished in " + ((end - begin) / 1000) + " seconds.");
                log.info("Success of normal recovery!!!");
            } catch (ChaiDBException e) {
                System.out.println("[" + new Date().toString() + "] Failure to do recovery!!! Please refer to log file for more information.");
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.