예제 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void init() throws java.io.IOException
        public override void Init()
        {
            _logVersionRepository = _context.LogVersionRepository;
            // Make sure at least a bare bones log file is available before recovery
            long lastLogVersionUsed = this._logVersionRepository.CurrentLogVersion;

            _channel = _logFiles.createLogChannelForVersion(lastLogVersionUsed, OpenMode.READ_WRITE, _context.getLastCommittedTransactionId);
            _channel.close();
        }
예제 #2
0
        // In order to be able to write into a logfile after life.stop during shutdown sequence
        // we will close channel and writer only during shutdown phase when all pending changes (like last
        // checkpoint) are already in
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void shutdown() throws java.io.IOException
        public override void Shutdown()
        {
            if (_writer != null)
            {
                _writer.Dispose();
            }
            if (_channel != null)
            {
                _channel.close();
            }
        }