org.apache.hadoop.hdfs.server.namenode.snapshot
Class FSImageFormatPBSnapshot.Saver

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.snapshot.FSImageFormatPBSnapshot.Saver
Enclosing class:
org.apache.hadoop.hdfs.server.namenode.snapshot.FSImageFormatPBSnapshot

public static final class FSImageFormatPBSnapshot.Saver
extends Object

Saving snapshot related information to protobuf based FSImage


Constructor Summary
FSImageFormatPBSnapshot.Saver(FSImageFormatProtobuf.Saver parent, FsImageProto.FileSummary.Builder headers, org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext context, org.apache.hadoop.hdfs.server.namenode.FSNamesystem fsn)
           
 
Method Summary
 void serializeINodeReferenceSection(OutputStream out)
          This can only be called after serializing both INode_Dir and SnapshotDiff
 void serializeSnapshotDiffSection(OutputStream out)
          save all the snapshot diff to fsimage
 void serializeSnapshotSection(OutputStream out)
          save all the snapshottable directories and snapshots to fsimage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSImageFormatPBSnapshot.Saver

public FSImageFormatPBSnapshot.Saver(FSImageFormatProtobuf.Saver parent,
                                     FsImageProto.FileSummary.Builder headers,
                                     org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext context,
                                     org.apache.hadoop.hdfs.server.namenode.FSNamesystem fsn)
Method Detail

serializeSnapshotSection

public void serializeSnapshotSection(OutputStream out)
                              throws IOException
save all the snapshottable directories and snapshots to fsimage

Throws:
IOException

serializeINodeReferenceSection

public void serializeINodeReferenceSection(OutputStream out)
                                    throws IOException
This can only be called after serializing both INode_Dir and SnapshotDiff

Throws:
IOException

serializeSnapshotDiffSection

public void serializeSnapshotDiffSection(OutputStream out)
                                  throws IOException
save all the snapshot diff to fsimage

Throws:
IOException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.