Class FrozenNodeLogger
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.version.FrozenNodeLogger
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class FrozenNodeLogger extends Object implements Closeable
Logger facility for frozen node lookups by identifier. Calls tolookupById(Tree)
first check the feature toggleoak.logFrozenNodeLookup
and then whether the givenTree
is of typent: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 Summary
Constructors Constructor Description FrozenNodeLogger(@NotNull Clock clock, @NotNull Whiteboard whiteboard)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
logFrozenNode(Tree tree)
void
lookupById(@NotNull Tree tree)
-
-
-
Constructor Detail
-
FrozenNodeLogger
public FrozenNodeLogger(@NotNull @NotNull Clock clock, @NotNull @NotNull Whiteboard whiteboard)
-
-