Class CouchbaseLiteInternal


  • public final class CouchbaseLiteInternal
    extends Object
    Among the other things that this class attempts to abstract away, is access to the file system. On both Android, and in a Web Container, file system access is pretty problematic. Among other things, some code make the tacit assumption that there is a single root directory that contains both a scratch (temp) directory and the database directory. The scratch directory is also used, occasionally, as the home for log files.
    • Method Detail

      • init

        public static void init​(@NonNull
                                MValue.Delegate mValueDelegate,
                                boolean debug,
                                @NonNull
                                File rootDir,
                                @NonNull
                                File scratchDir,
                                @NonNull
                                android.content.Context ctxt)
        Initialize CouchbaseLite library. This method MUST be called before using CouchbaseLite.
      • getContext

        @NonNull
        public static android.content.Context getContext()
      • debugging

        public static boolean debugging()
      • getExecutionService

        @NonNull
        public static ExecutionService getExecutionService()
      • requireInit

        public static void requireInit​(String message)
      • getRootDir

        @NonNull
        public static File getRootDir()
      • getRootDirPath

        @NonNull
        public static String getRootDirPath()
      • getScratchDir

        @NonNull
        public static File getScratchDir()
      • getScratchDirPath

        @NonNull
        public static String getScratchDirPath()
      • reset

        public static void reset​(boolean state)
      • loadErrorMessages

        @NonNull
        public static Map<String,​String> loadErrorMessages​(@NonNull
                                                                 android.content.Context ctxt)