public final class NamespacePrintVisitor extends Object implements NamespaceVisitor
NamespaceVisitor.Element, NamespaceVisitor.INodeVisitor| Modifier and Type | Method and Description |
|---|---|
void |
postVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
Right after visiting the given referred
INode. |
void |
postVisitSub(NamespaceVisitor.Element sub,
int index,
boolean isLast)
Right after visiting the given sub
NamespaceVisitor.Element. |
void |
preVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
Right before visiting the given referred
INode. |
void |
preVisitSub(NamespaceVisitor.Element sub,
int index,
boolean isLast)
Right before visiting the given sub
NamespaceVisitor.Element. |
static String |
print2Sting(org.apache.hadoop.hdfs.server.namenode.FSNamesystem ns) |
static String |
print2Sting(org.apache.hadoop.hdfs.server.namenode.INode root) |
void |
visitDirectory(INodeDirectory dir,
int snapshot)
Visiting the given
INodeDirectory (non-recursively). |
void |
visitFile(org.apache.hadoop.hdfs.server.namenode.INodeFile file,
int snapshot)
Visiting the given
INodeFile. |
void |
visitReference(INodeReference ref,
int snapshot)
Visiting the given
INodeReference (non-recursively). |
void |
visitSnapshottable(INodeDirectory dir,
org.apache.hadoop.hdfs.server.namenode.snapshot.DirectorySnapshottableFeature snapshottable)
Visiting a
DirectorySnapshottableFeature. |
void |
visitSymlink(org.apache.hadoop.hdfs.server.namenode.INodeSymlink symlink,
int snapshot)
Visiting the given
INodeSymlink. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildren, getDefaultVisitor, getSnapshots, visitDirectoryRecursively, visitReferenceRecursively, visitSubspublic static String print2Sting(org.apache.hadoop.hdfs.server.namenode.FSNamesystem ns)
FSNamesystem.public static String print2Sting(org.apache.hadoop.hdfs.server.namenode.INode root)
public void visitFile(org.apache.hadoop.hdfs.server.namenode.INodeFile file,
int snapshot)
NamespaceVisitorINodeFile.visitFile in interface NamespaceVisitorpublic void visitSymlink(org.apache.hadoop.hdfs.server.namenode.INodeSymlink symlink,
int snapshot)
NamespaceVisitorINodeSymlink.visitSymlink in interface NamespaceVisitorpublic void visitReference(INodeReference ref, int snapshot)
NamespaceVisitorINodeReference (non-recursively).visitReference in interface NamespaceVisitorpublic void preVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
NamespaceVisitorINode.preVisitReferred in interface NamespaceVisitorpublic void postVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
NamespaceVisitorINode.postVisitReferred in interface NamespaceVisitorpublic void visitDirectory(INodeDirectory dir, int snapshot)
NamespaceVisitorINodeDirectory (non-recursively).visitDirectory in interface NamespaceVisitorpublic void visitSnapshottable(INodeDirectory dir, org.apache.hadoop.hdfs.server.namenode.snapshot.DirectorySnapshottableFeature snapshottable)
NamespaceVisitorDirectorySnapshottableFeature.visitSnapshottable in interface NamespaceVisitorpublic void preVisitSub(NamespaceVisitor.Element sub, int index, boolean isLast)
NamespaceVisitorNamespaceVisitor.Element.
The sub element may be a child of an INodeDirectory
or a snapshot in DirectorySnapshottableFeature.preVisitSub in interface NamespaceVisitorsub - the element to be visited.index - the index of the sub element.isLast - is the sub element the last element?public void postVisitSub(NamespaceVisitor.Element sub, int index, boolean isLast)
NamespaceVisitorNamespaceVisitor.Element.
The sub element may be a child of an INodeDirectory
or a snapshot in DirectorySnapshottableFeature.postVisitSub in interface NamespaceVisitorsub - the element just visited.index - the index of the sub element.isLast - is the sub element the last element?Copyright © 2008–2024 Apache Software Foundation. All rights reserved.