public static final class FSImageFormatPBSnapshot.Saver extends Object
| Constructor and Description |
|---|
Saver(FSImageFormatProtobuf.Saver parent,
FsImageProto.FileSummary.Builder headers,
org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext context,
org.apache.hadoop.hdfs.server.namenode.FSNamesystem fsn) |
| Modifier and Type | Method and Description |
|---|---|
long |
getNumImageErrors()
Number of non-fatal errors detected while writing the
SnapshotDiff and INodeReference sections.
|
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
|
public Saver(FSImageFormatProtobuf.Saver parent, FsImageProto.FileSummary.Builder headers, org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext context, org.apache.hadoop.hdfs.server.namenode.FSNamesystem fsn)
public void serializeSnapshotSection(OutputStream out) throws IOException
IOExceptionpublic void serializeINodeReferenceSection(OutputStream out) throws IOException
IOExceptionpublic void serializeSnapshotDiffSection(OutputStream out) throws IOException
IOExceptionpublic long getNumImageErrors()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.