/// <exception cref="System.IO.IOException"/>
 public HistoryFileReader(FileSystemApplicationHistoryStore _enclosing, Path historyFile
                          )
 {
     this._enclosing = _enclosing;
     this.fsdis      = this._enclosing.fs.Open(historyFile);
     this.reader     = new TFile.Reader(this.fsdis, this._enclosing.fs.GetFileStatus(historyFile
                                                                                     ).GetLen(), this._enclosing.GetConfig());
     this.Reset();
 }
 /// <exception cref="System.IO.IOException"/>
 public HistoryFileWriter(FileSystemApplicationHistoryStore _enclosing, Path historyFile
                          )
 {
     this._enclosing = _enclosing;
     if (this._enclosing.fs.Exists(historyFile))
     {
         this.fsdos = this._enclosing.fs.Append(historyFile);
     }
     else
     {
         this.fsdos = this._enclosing.fs.Create(historyFile);
     }
     this._enclosing.fs.SetPermission(historyFile, FileSystemApplicationHistoryStore.HistoryFileUmask
                                      );
     this.writer = new TFile.Writer(this.fsdos, FileSystemApplicationHistoryStore.MinBlockSize
                                    , this._enclosing.GetConfig().Get(YarnConfiguration.FsApplicationHistoryStoreCompressionType
                                                                      , YarnConfiguration.DefaultFsApplicationHistoryStoreCompressionType), null, this
                                    ._enclosing.GetConfig());
 }