Class FrozenNodeLogger

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class FrozenNodeLogger
    extends java.lang.Object
    implements java.io.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)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • logFrozenNode

        protected void logFrozenNode​(Tree tree)