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 void
reportNode(@NotNull ReportingNodeState nodeState)
Callback reporting that the givennodeState
was accessed.void
reportProperty(@NotNull ReportingNodeState parent, @NotNull java.lang.String propertyName)
Callback reporting that the property namedpropertyName
was accessed on theparent
node.
-
-
-
Method Detail
-
reportNode
public final void reportNode(@NotNull @NotNull ReportingNodeState nodeState)
Description copied from interface:Reporter
Callback reporting that the givennodeState
was accessed.- Specified by:
reportNode
in interfaceReporter
- Parameters:
nodeState
- The accessedReportingNodeState
instance.
-
reportProperty
public final void reportProperty(@NotNull @NotNull ReportingNodeState parent, @NotNull @NotNull java.lang.String propertyName)
Description copied from interface:Reporter
Callback reporting that the property namedpropertyName
was accessed on theparent
node.- Specified by:
reportProperty
in interfaceReporter
- Parameters:
parent
- The parent node state of the reported property.propertyName
- The name of the reported property.
-
-