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, wait
getChildren, getDefaultVisitor, getSnapshots, visitDirectoryRecursively, visitReferenceRecursively, visitSubs
public 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)
NamespaceVisitor
INodeFile
.visitFile
in interface NamespaceVisitor
public void visitSymlink(org.apache.hadoop.hdfs.server.namenode.INodeSymlink symlink, int snapshot)
NamespaceVisitor
INodeSymlink
.visitSymlink
in interface NamespaceVisitor
public void visitReference(INodeReference ref, int snapshot)
NamespaceVisitor
INodeReference
(non-recursively).visitReference
in interface NamespaceVisitor
public void preVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
NamespaceVisitor
INode
.preVisitReferred
in interface NamespaceVisitor
public void postVisitReferred(org.apache.hadoop.hdfs.server.namenode.INode referred)
NamespaceVisitor
INode
.postVisitReferred
in interface NamespaceVisitor
public void visitDirectory(INodeDirectory dir, int snapshot)
NamespaceVisitor
INodeDirectory
(non-recursively).visitDirectory
in interface NamespaceVisitor
public void visitSnapshottable(INodeDirectory dir, org.apache.hadoop.hdfs.server.namenode.snapshot.DirectorySnapshottableFeature snapshottable)
NamespaceVisitor
DirectorySnapshottableFeature
.visitSnapshottable
in interface NamespaceVisitor
public void preVisitSub(NamespaceVisitor.Element sub, int index, boolean isLast)
NamespaceVisitor
NamespaceVisitor.Element
.
The sub element may be a child of an INodeDirectory
or a snapshot in DirectorySnapshottableFeature
.preVisitSub
in interface NamespaceVisitor
sub
- 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)
NamespaceVisitor
NamespaceVisitor.Element
.
The sub element may be a child of an INodeDirectory
or a snapshot in DirectorySnapshottableFeature
.postVisitSub
in interface NamespaceVisitor
sub
- 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.