Interface DiagnosticConfiguration

  • All Known Implementing Classes:
    DiagnosticProcessor

    public interface DiagnosticConfiguration
    provides methods to configure the behaviour of db4o diagnostics.

    Diagnostic system can be enabled on a running db4o database to notify a user about possible problems or misconfigurations. Diagnostic listeners can be be added and removed with calls to this interface. To install the most basic listener call:
    EmbeddedConfiguration config = Db4oEmbedded.newConfiguration();
    config.common().diagnostic().addListener(new DiagnosticToConsole());
    See Also:
    Configuration.diagnostic(), DiagnosticListener
    • Method Detail

      • addListener

        void addListener​(DiagnosticListener listener)
        adds a DiagnosticListener to listen to Diagnostic messages.
      • removeAllListeners

        void removeAllListeners()
        removes all DiagnosticListeners.