public static final class FSImageFormatPBSnapshot.Saver
extends java.lang.Object
| Constructor | Description |
|---|---|
Saver(FSImageFormatProtobuf.Saver parent,
FsImageProto.FileSummary.Builder headers,
SaveNamespaceContext context,
FSNamesystem fsn) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getNumImageErrors() |
Number of non-fatal errors detected while writing the
SnapshotDiff and INodeReference sections.
|
void |
serializeINodeReferenceSection(java.io.OutputStream out) |
This can only be called after serializing both INode_Dir and SnapshotDiff
|
void |
serializeSnapshotDiffSection(java.io.OutputStream out) |
save all the snapshot diff to fsimage
|
void |
serializeSnapshotSection(java.io.OutputStream out) |
save all the snapshottable directories and snapshots to fsimage
|
public Saver(FSImageFormatProtobuf.Saver parent, FsImageProto.FileSummary.Builder headers, SaveNamespaceContext context, FSNamesystem fsn)
public void serializeSnapshotSection(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic void serializeINodeReferenceSection(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic void serializeSnapshotDiffSection(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic long getNumImageErrors()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.