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
CompositeNodeStore
is 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 interface
NonDefaultMountWriteReportingObserver.Config
-
Constructor Summary
Constructors Constructor Description NonDefaultMountWriteReportingObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(NonDefaultMountWriteReportingObserver.Config cfg)
void
contentChanged(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:Observer
Observes a content change. See theObserver
class javadocs and relevant repository and observer registration details for more information on when and how this method gets called.- Specified by:
contentChanged
in interfaceObserver
- Parameters:
root
- root state of the repositoryinfo
- commit information
-
-