Package com.sun.messaging.jmq.util.txnlog.file

Examples of com.sun.messaging.jmq.util.txnlog.file.FileTransactionLogWriter


        synch = false;
      }
      logger.log(Logger.INFO, br.getKString(BrokerResources.I_OPEN_TXNLOG,
            mode, Long.valueOf(filesize.getBytes())));

      FileTransactionLogWriter ftlw = new FileTransactionLogWriter(
          rootDir, filename, filesize.getBytes(), mode, synch,
          isTxnLogGroupCommits,
          BaseTransaction.CURRENT_FORMAT_VERSION);
      long existingFormatVersion = ftlw.getExistingAppCookie();
     
      //
      // Check version here
      // if(existingFormatVersion!=BaseTransaction.CURRENT_FORMAT_VERSION)
      // then file may need to be converted.
View Full Code Here


        try {
            SizeString filesize = config.getSizeProperty(TXNLOG_FILE_SIZE_PROP,
                DEFAULT_TXNLOG_FILE_SIZE);

            filename = MSG_LOG_FILENAME;
            msgLogWriter = new FileTransactionLogWriter(
                rootDir, filename, filesize.getBytes());
            msgLogWriter.setCheckPointListener(this);

            filename = ACK_LOG_FILENAME;
            ackLogWriter = new FileTransactionLogWriter(
                rootDir, filename, filesize.getBytes());
            ackLogWriter.setCheckPointListener(this);

            if (resetMessage || resetStore) {
                msgLogWriter.reset();
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.util.txnlog.file.FileTransactionLogWriter

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.