Class NonDefaultMountWriteReportingObserver

  • All Implemented Interfaces:
    Observer

    public class NonDefaultMountWriteReportingObserver
    extends Object
    implements Observer
    Reports writes to non-default mounts

    This 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.

    • Constructor Detail

      • NonDefaultMountWriteReportingObserver

        public NonDefaultMountWriteReportingObserver()
    • Method Detail

      • contentChanged

        public final void contentChanged​(NodeState root,
                                         CommitInfo info)
        Description copied from interface: Observer
        Observes a content change. See the Observer class javadocs and relevant repository and observer registration details for more information on when and how this method gets called.
        Specified by:
        contentChanged in interface Observer
        Parameters:
        root - root state of the repository
        info - commit information