Package com.db4o.internal.diagnostic
Class DiagnosticProcessor
- java.lang.Object
-
- com.db4o.internal.diagnostic.DiagnosticProcessor
-
- All Implemented Interfaces:
DiagnosticConfiguration
,DeepClone
public class DiagnosticProcessor extends java.lang.Object implements DiagnosticConfiguration, DeepClone
-
-
Constructor Summary
Constructors Constructor Description DiagnosticProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(DiagnosticListener listener)
adds a DiagnosticListener to listen to Diagnostic messages.void
checkClassHasFields(ClassMetadata classMetadata)
void
checkUpdateDepth(int depth)
void
classMissed(java.lang.String className)
java.lang.Object
deepClone(java.lang.Object context)
The parameter allows passing one new object so parent references can be corrected on children.void
defragmentRecommended(DefragmentRecommendation.DefragmentRecommendationReason reason)
void
deletionFailed()
void
descendIntoTranslator(ClassMetadata parent, java.lang.String fieldName)
boolean
enabled()
void
loadedFromClassIndex(ClassMetadata classMetadata)
void
nativeQueryOptimizerNotLoaded(int reason, java.lang.Exception e)
void
nativeQueryUnoptimized(Predicate predicate, java.lang.Exception exception)
void
objectFieldDoesNotExist(java.lang.String className, java.lang.String fieldName)
void
onDiagnostic(Diagnostic d)
void
removeAllListeners()
removes all DiagnosticListeners.
-
-
-
Method Detail
-
addListener
public void addListener(DiagnosticListener listener)
Description copied from interface:DiagnosticConfiguration
adds a DiagnosticListener to listen to Diagnostic messages.- Specified by:
addListener
in interfaceDiagnosticConfiguration
-
checkClassHasFields
public void checkClassHasFields(ClassMetadata classMetadata)
-
checkUpdateDepth
public void checkUpdateDepth(int depth)
-
deepClone
public java.lang.Object deepClone(java.lang.Object context)
Description copied from interface:DeepClone
The parameter allows passing one new object so parent references can be corrected on children.
-
deletionFailed
public void deletionFailed()
-
defragmentRecommended
public void defragmentRecommended(DefragmentRecommendation.DefragmentRecommendationReason reason)
-
enabled
public boolean enabled()
-
loadedFromClassIndex
public void loadedFromClassIndex(ClassMetadata classMetadata)
-
descendIntoTranslator
public void descendIntoTranslator(ClassMetadata parent, java.lang.String fieldName)
-
nativeQueryUnoptimized
public void nativeQueryUnoptimized(Predicate predicate, java.lang.Exception exception)
-
nativeQueryOptimizerNotLoaded
public void nativeQueryOptimizerNotLoaded(int reason, java.lang.Exception e)
-
objectFieldDoesNotExist
public void objectFieldDoesNotExist(java.lang.String className, java.lang.String fieldName)
-
classMissed
public void classMissed(java.lang.String className)
-
onDiagnostic
public void onDiagnostic(Diagnostic d)
-
removeAllListeners
public void removeAllListeners()
Description copied from interface:DiagnosticConfiguration
removes all DiagnosticListeners.- Specified by:
removeAllListeners
in interfaceDiagnosticConfiguration
-
-