Package com.db4o

Class Debug4


  • public final class Debug4
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean atHome
      prints more stack traces
      static boolean checkSychronization
      checks monitor conditions to make sure only the thread with the global monitor is allowed entry to the core
      static boolean configureAllClasses
      makes sure a configuration entry is generated for each persistent class
      static boolean configureAllFields
      makes sure a configuration entry is generated for each persistent field
      static boolean freespace
      turns freespace debuggin on
      static boolean indexAllFields
      indexes all fields
      static boolean lockFile
      allows overriding the file locking mechanism to turn it off
      static boolean longTimeOuts
      makes C/S timeouts longer, so C/S does not time out in the debugger
      static boolean messages
      prints all communicated messages to the console
      static boolean nio
      allows turning NIO off on Java
      static boolean queries
      prints query graph information to the console
      static 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
      static boolean weakReferences
      allows turning weak references off
      static boolean xbytes
      fills deleted slots with 'X' and overrides any configured freespace filler
    • 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
      • 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
      • 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)