Class PeriodicReporter
java.lang.Object
org.apache.jackrabbit.oak.plugins.migration.report.PeriodicReporter
- All Implemented Interfaces:
Reporter
- Direct Known Subclasses:
LoggingReporter
Abstract class that simplifies development of a Reporter
that should only report every nth event (node or property seen).
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidreportNode(@NotNull ReportingNodeState nodeState) Callback reporting that the givennodeStatewas accessed.final voidreportProperty(@NotNull ReportingNodeState parent, @NotNull String propertyName) Callback reporting that the property namedpropertyNamewas accessed on theparentnode.
-
Method Details
-
reportNode
Description copied from interface:ReporterCallback reporting that the givennodeStatewas accessed.- Specified by:
reportNodein interfaceReporter- Parameters:
nodeState- The accessedReportingNodeStateinstance.
-
reportProperty
public final void reportProperty(@NotNull @NotNull ReportingNodeState parent, @NotNull @NotNull String propertyName) Description copied from interface:ReporterCallback reporting that the property namedpropertyNamewas accessed on theparentnode.- Specified by:
reportPropertyin interfaceReporter- Parameters:
parent- The parent node state of the reported property.propertyName- The name of the reported property.
-