Package com.db4o
Class Debug4
- java.lang.Object
-
- com.db4o.Debug4
-
public final class Debug4 extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static booleanatHomeprints more stack tracesstatic booleancheckSychronizationchecks monitor conditions to make sure only the thread with the global monitor is allowed entry to the corestatic booleanconfigureAllClassesmakes sure a configuration entry is generated for each persistent classstatic booleanconfigureAllFieldsmakes sure a configuration entry is generated for each persistent fieldstatic booleanfreespaceturns freespace debuggin onstatic booleanindexAllFieldsindexes all fieldsstatic booleanlockFileallows overriding the file locking mechanism to turn it offstatic booleanlongTimeOutsmakes C/S timeouts longer, so C/S does not time out in the debuggerstatic booleanmessagesprints all communicated messages to the consolestatic booleannioallows turning NIO off on Javastatic booleanqueriesprints query graph information to the consolestatic booleanstaticIdentityallows faking the Db4oDatabase identity object, so the first stored object in the debugger is the actually persisted object Changing this setting to true will fail some tests that expect database files to have identitystatic booleanweakReferencesallows turning weak references offstatic booleanxbytesfills deleted slots with 'X' and overrides any configured freespace filler
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidensureLock(java.lang.Object obj)static booleanexceedsMaximumArrayEntries(int a_entries, boolean a_primitive)static booleanexceedsMaximumBlockSize(int a_length)static voidexpect(boolean cond)static voidreadBegin(ReadBuffer buffer, byte identifier)static voidreadEnd(ReadBuffer buffer)static voidwriteBegin(WriteBuffer buffer, byte identifier)static voidwriteEnd(WriteBuffer buffer)
-
-
-
Field Detail
-
indexAllFields
public static final boolean indexAllFields
indexes all fields- See Also:
- Constant Field Values
-
queries
public static final boolean queries
prints query graph information to the console- See Also:
- Constant Field Values
-
staticIdentity
public static final boolean staticIdentity
allows faking the Db4oDatabase identity object, so the first stored object in the debugger is the actually persisted object Changing this setting to true will fail some tests that expect database files to have identity- See Also:
- Constant Field Values
-
atHome
public static final boolean atHome
prints more stack traces- See Also:
- Constant Field Values
-
longTimeOuts
public static final boolean longTimeOuts
makes C/S timeouts longer, so C/S does not time out in the debugger- See Also:
- Constant Field Values
-
freespace
public static final boolean freespace
turns freespace debuggin on- See Also:
- Constant Field Values
-
xbytes
public static final boolean xbytes
fills deleted slots with 'X' and overrides any configured freespace filler- See Also:
- Constant Field Values
-
checkSychronization
public static final boolean checkSychronization
checks monitor conditions to make sure only the thread with the global monitor is allowed entry to the core- See Also:
- Constant Field Values
-
configureAllClasses
public static final boolean configureAllClasses
makes sure a configuration entry is generated for each persistent class- See Also:
- Constant Field Values
-
configureAllFields
public static final boolean configureAllFields
makes sure a configuration entry is generated for each persistent field- See Also:
- Constant Field Values
-
weakReferences
public static final boolean weakReferences
allows turning weak references off- See Also:
- Constant Field Values
-
messages
public static final boolean messages
prints all communicated messages to the console- See Also:
- Constant Field Values
-
nio
public static final boolean nio
allows turning NIO off on Java- See Also:
- Constant Field Values
-
lockFile
public static final boolean lockFile
allows overriding the file locking mechanism to turn it off- See Also:
- Constant Field Values
-
-
Method Detail
-
expect
public static void expect(boolean cond)
-
ensureLock
public static void ensureLock(java.lang.Object obj)
-
exceedsMaximumBlockSize
public static boolean exceedsMaximumBlockSize(int a_length)
-
exceedsMaximumArrayEntries
public static boolean exceedsMaximumArrayEntries(int a_entries, boolean a_primitive)
-
readBegin
public static final void readBegin(ReadBuffer buffer, byte identifier)
-
readEnd
public static final void readEnd(ReadBuffer buffer)
-
writeBegin
public static final void writeBegin(WriteBuffer buffer, byte identifier)
-
writeEnd
public static final void writeEnd(WriteBuffer buffer)
-
-