use of org.apache.hadoop.hdfs.server.namenode.FsImageProto.NameSystemSection in project hadoop by apache.
the class PBImageXmlWriter method dumpNameSection.
private void dumpNameSection(InputStream in) throws IOException {
NameSystemSection s = NameSystemSection.parseDelimitedFrom(in);
out.print("<" + NAME_SECTION_NAME + ">");
o(NAME_SECTION_NAMESPACE_ID, s.getNamespaceId());
o(NAME_SECTION_GENSTAMPV1, s.getGenstampV1()).o(NAME_SECTION_GENSTAMPV2, s.getGenstampV2()).o(NAME_SECTION_GENSTAMPV1_LIMIT, s.getGenstampV1Limit()).o(NAME_SECTION_LAST_ALLOCATED_BLOCK_ID, s.getLastAllocatedBlockId()).o(NAME_SECTION_TXID, s.getTransactionId());
out.print("</" + NAME_SECTION_NAME + ">\n");
}
Aggregations