Class NonDefaultMountWriteReportingObserver
- java.lang.Object
-
- org.apache.jackrabbit.oak.composite.impl.NonDefaultMountWriteReportingObserver
-
- All Implemented Interfaces:
Observer
public class NonDefaultMountWriteReportingObserver extends Object implements Observer
Reports writes to non-default mountsThis is a diagnostic observer and is expected to be used in scenarios where the
CompositeNodeStoreis configured in a 'seed' mode, where the non-default mounts are write-enabled.In such scenarios it is useful to report writes to non-default mounts from components that are unexpected. For instance, it can report all writes that do not originate from the FileVault package installer.
Performance note: the overhead of this observer has not been measured, but as it is designed to be used only for initial setups the performance impact should not matter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNonDefaultMountWriteReportingObserver.Config
-
Constructor Summary
Constructors Constructor Description NonDefaultMountWriteReportingObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(NonDefaultMountWriteReportingObserver.Config cfg)voidcontentChanged(NodeState root, CommitInfo info)Observes a content change.
-
-
-
Method Detail
-
activate
protected void activate(NonDefaultMountWriteReportingObserver.Config cfg)
-
contentChanged
public final void contentChanged(NodeState root, CommitInfo info)
Description copied from interface:ObserverObserves a content change. See theObserverclass javadocs and relevant repository and observer registration details for more information on when and how this method gets called.- Specified by:
contentChangedin interfaceObserver- Parameters:
root- root state of the repositoryinfo- commit information
-
-