Пример #1
0
 /// <exception cref="System.IO.IOException"/>
 public FileCache(BackupStore <K, V> _enclosing, Configuration conf)
 {
     this._enclosing = _enclosing;
     this.conf       = conf;
     this.fs         = FileSystem.GetLocal(conf);
     this.lDirAlloc  = new LocalDirAllocator(MRConfig.LocalDir);
 }
Пример #2
0
 public MemoryCache(BackupStore <K, V> _enclosing, int maxSize)
 {
     this._enclosing = _enclosing;
     // Memory cache is made up of blocks.
     this.ramManager = new BackupStore.BackupRamManager(maxSize);
     if (maxSize < this.defaultBlockSize)
     {
         this.defaultBlockSize = maxSize;
     }
 }