Class PeriodicReporter
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.migration.report.PeriodicReporter
-
- All Implemented Interfaces:
Reporter
- Direct Known Subclasses:
LoggingReporter
public abstract class PeriodicReporter extends java.lang.Object implements Reporter
Abstract class that simplifies development of a Reporter that should only report every nth event (node or property seen).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreportNode(@NotNull ReportingNodeState nodeState)Callback reporting that the givennodeStatewas accessed.voidreportProperty(@NotNull ReportingNodeState parent, @NotNull java.lang.String propertyName)Callback reporting that the property namedpropertyNamewas accessed on theparentnode.
-
-
-
Method Detail
-
reportNode
public final void reportNode(@NotNull @NotNull ReportingNodeState nodeState)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 java.lang.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.
-
-