Package com.db4o.diagnostic
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(DiagnosticListener listener)
adds a DiagnosticListener to listen to Diagnostic messages.void
removeAllListeners()
removes all DiagnosticListeners.
-
-
-
Method Detail
-
addListener
void addListener(DiagnosticListener listener)
adds a DiagnosticListener to listen to Diagnostic messages.
-
removeAllListeners
void removeAllListeners()
removes all DiagnosticListeners.
-
-