OfflineEditsVisitor@Private @Unstable public class StatisticsEditsVisitor extends java.lang.Object implements OfflineEditsVisitor
| Constructor | Description |
|---|---|
StatisticsEditsVisitor(java.io.OutputStream out) |
Create a processor that writes to the file named and may or may not
also output to the screen, as specified.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close(java.lang.Throwable error) |
Close the visitor
|
java.util.Map<FSEditLogOpCodes,java.lang.Long> |
getStatistics() |
Get statistics
|
java.lang.String |
getStatisticsString() |
Get the statistics in string format, suitable for printing
|
void |
start(int version) |
Start the visitor
|
void |
visitOp(FSEditLogOp op) |
Begin visiting an element that encloses another element, such as
the beginning of the list of blocks that comprise a file.
|
public StatisticsEditsVisitor(java.io.OutputStream out)
throws java.io.IOException
out - Name of file to write output tojava.io.IOExceptionpublic void start(int version)
throws java.io.IOException
start in interface OfflineEditsVisitorversion - Edit log versionjava.io.IOExceptionpublic void close(java.lang.Throwable error)
throws java.io.IOException
close in interface OfflineEditsVisitorerror - If the visitor was closed because of an
unrecoverable error in the input stream, this
is the exception.java.io.IOExceptionpublic void visitOp(FSEditLogOp op) throws java.io.IOException
OfflineEditsVisitorvisitOp in interface OfflineEditsVisitorop - Token being visitedjava.io.IOExceptionpublic java.util.Map<FSEditLogOpCodes,java.lang.Long> getStatistics()
public java.lang.String getStatisticsString()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.