Package org.chaidb.db.log

Examples of org.chaidb.db.log.LogManager


    /**
     * user interface to add a log record and put it to buffer pool
     */
    public Lsn log() throws ChaiDBException {
        super.log();
        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = logMgr.put(this, LogManager.LOG_DATA);

        return newLsn;
    }
View Full Code Here


    /**
     * user interface to add a log record and put it to buffer pool
     */
    public Lsn log(int flag) throws ChaiDBException {
        super.log();
        LogManager logMgr = Db.getLogManager();

        Lsn newLsn;
        if (flag == Transaction.TXN_SYNC) {
            newLsn = logMgr.put(this, LogManager.LOG_FLUSH);//flush log to log file while commit
        } else {
            newLsn = logMgr.put(this, LogManager.LOG_DATA);//not flush log to log file,just put it to log buffer
        }

        return newLsn;
    }
View Full Code Here

            return null;
        }

        super.log();

        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = null;

        //        if (operationFlag == FILE_DELETE_OPERATION) {
        //            newLsn = logMgr.put(this, LogManager.LOG_FLUSH);//flush log to log file while do delete collection/index operation
        //        } else {
        //            newLsn = logMgr.put(this, LogManager.LOG_DATA);//not flush log to log file,just put it to log buffer
        //        }

        /* modified by marriane 2003-11-6,flush log either deleting or creating operation for fixing inconsistent issue */
        newLsn = logMgr.put(this, LogManager.LOG_FLUSH);

        return newLsn;
    }
View Full Code Here

        if (!Config.TXN_SUPPORT) {
            return null;
        }

        super.log();
        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = logMgr.put(this, LogManager.LOG_FLUSH);

        return newLsn;
    }
View Full Code Here

    /**
     * user interface to add a log record and put it to buffer pool
     */
    public Lsn log() throws ChaiDBException {
        super.log();
        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = logMgr.put(this, LogManager.LOG_CHECKPOINT);

        return newLsn;
    }
View Full Code Here

    /**
     * user interface to add a log record and put it to buffer pool
     */
    public Lsn log() throws ChaiDBException {
        super.log();
        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = logMgr.put(this, LogManager.LOG_CHILD_FLUSH);

        return newLsn;
    }
View Full Code Here

TOP

Related Classes of org.chaidb.db.log.LogManager

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.