Class FrozenNodeLogger

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class FrozenNodeLogger
    extends Object
    implements Closeable
    Logger facility for frozen node lookups by identifier. Calls to lookupById(Tree) first check the feature toggle oak.logFrozenNodeLookup and then whether the given Tree is of type nt:frozenNode in which case the path of the tree is logged at INFO. Log messages are rate limited to one per second. If multiple frozen nodes are looked up by identifier with the period of one second, then only the first lookup is logged; the other lookups are not logged. Enabling DEBUG level for this class reveals the stack of the calling thread.
    • Constructor Detail

      • FrozenNodeLogger

        public FrozenNodeLogger​(@NotNull
                                @NotNull Clock clock,
                                @NotNull
                                @NotNull Whiteboard whiteboard)
    • Method Detail

      • lookupById

        public final void lookupById​(@NotNull
                                     @NotNull Tree tree)
      • logFrozenNode

        protected void logFrozenNode​(Tree tree)