Exemplo n.º 1
0
 /// <exception cref="System.IO.IOException"/>
 private void SaveSnapshots(FsImageProto.FileSummary.Builder summary)
 {
     FSImageFormatPBSnapshot.Saver snapshotSaver = new FSImageFormatPBSnapshot.Saver(this
                                                                                     , summary, context, context.GetSourceNamesystem());
     snapshotSaver.SerializeSnapshotSection(sectionOutputStream);
     snapshotSaver.SerializeSnapshotDiffSection(sectionOutputStream);
     snapshotSaver.SerializeINodeReferenceSection(sectionOutputStream);
 }
Exemplo n.º 2
0
 internal Saver(FSImageFormatProtobuf.Saver parent, FsImageProto.FileSummary.Builder
                summary)
 {
     this.parent  = parent;
     this.summary = summary;
     this.context = parent.GetContext();
     this.fsn     = context.GetSourceNamesystem();
 }