Class PeriodicReporter

  • All Implemented Interfaces:
    Reporter
    Direct Known Subclasses:
    LoggingReporter

    public abstract class PeriodicReporter
    extends Object
    implements Reporter
    Abstract class that simplifies development of a Reporter that should only report every nth event (node or property seen).
    • Method Detail

      • reportNode

        public final void reportNode​(@NotNull
                                     @NotNull ReportingNodeState nodeState)
        Description copied from interface: Reporter
        Callback reporting that the given nodeState was accessed.
        Specified by:
        reportNode in interface Reporter
        Parameters:
        nodeState - The accessed ReportingNodeState instance.
      • reportProperty

        public final void reportProperty​(@NotNull
                                         @NotNull ReportingNodeState parent,
                                         @NotNull
                                         @NotNull String propertyName)
        Description copied from interface: Reporter
        Callback reporting that the property named propertyName was accessed on the parent node.
        Specified by:
        reportProperty in interface Reporter
        Parameters:
        parent - The parent node state of the reported property.
        propertyName - The name of the reported property.