Exemplo n.º 1
0
 /// <summary>
 ///     Open our files
 /// </summary>
 public void Open()
 {
     _fileManager.Scan();
     _writefile = _fileManager.OpenCurrentWriteFile();
     _readFile  = _fileManager.OpenCurrentReadFile();
     _count     = _fileManager.InitialQueueLength;
 }
Exemplo n.º 2
0
        private bool TryOpenNextReadFile()
        {
            // we are in the same file for reads and writes. i.e. it do currently not have any more records to read.
            if (!_fileManager.CanIncreaseReadFile())
            {
                return(false);
            }

            _readFile.Delete();
            _readFile = _fileManager.OpenNextReadFile();

            return(true);
        }
Exemplo n.º 3
0
 /// <summary>
 ///     Open our files
 /// </summary>
 public void Open()
 {
     _fileManager.Scan();
     _writefile = _fileManager.OpenCurrentWriteFile();
     _readFile = _fileManager.OpenCurrentReadFile();
     _count = _fileManager.InitialQueueLength;
 }
Exemplo n.º 4
0
        private bool TryOpenNextReadFile()
        {
            // we are in the same file for reads and writes. i.e. it do currently not have any more records to read.
            if (!_fileManager.CanIncreaseReadFile())
                return false;

            _readFile.Delete();
            _readFile = _fileManager.OpenNextReadFile();

            return true;
        }
 /// <summary>
 ///     Open our files
 /// </summary>
 public void Open()
 {
     _fileManager.Scan();
     _writefile = _fileManager.OpenCurrentWriteFile();
     _readFile  = _fileManager.OpenCurrentReadFile();
 }