Class 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 given nodeState was accessed.
      void reportProperty​(@NotNull ReportingNodeState parent, @NotNull java.lang.String propertyName)
      Callback reporting that the property named propertyName was accessed on the parent node.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.lang.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.