Package com.couchbase.lite.internal
Class CouchbaseLiteInternal
- java.lang.Object
-
- com.couchbase.lite.internal.CouchbaseLiteInternal
-
public final class CouchbaseLiteInternal extends java.lang.ObjectAmong 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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSCRATCH_DIR_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandebugging()static android.content.ContextgetContext()static ExecutionServicegetExecutionService()static NetworkConnectivityManagergetNetworkConnectivityManager()static java.io.FilegetRootDir()static java.lang.StringgetRootDirPath()static java.io.FilegetScratchDir()static java.lang.StringgetScratchDirPath()static voidinit(MValue.Delegate mValueDelegate, boolean debug, java.io.File rootDir, java.io.File scratchDir, android.content.Context ctxt)Initialize CouchbaseLite library.static java.util.Map<java.lang.String,java.lang.String>loadErrorMessages(android.content.Context ctxt)static voidrequireInit(java.lang.String message)static voidreset(boolean state)
-
-
-
Field Detail
-
SCRATCH_DIR_NAME
public static final java.lang.String SCRATCH_DIR_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public static void init(@NonNull MValue.Delegate mValueDelegate, boolean debug, @NonNull java.io.File rootDir, @NonNull java.io.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()
-
getNetworkConnectivityManager
@NonNull public static NetworkConnectivityManager getNetworkConnectivityManager()
-
getExecutionService
@NonNull public static ExecutionService getExecutionService()
-
requireInit
public static void requireInit(java.lang.String message)
-
getRootDir
@NonNull public static java.io.File getRootDir()
-
getRootDirPath
@NonNull public static java.lang.String getRootDirPath()
-
getScratchDir
@NonNull public static java.io.File getScratchDir()
-
getScratchDirPath
@NonNull public static java.lang.String getScratchDirPath()
-
reset
public static void reset(boolean state)
-
loadErrorMessages
@NonNull public static java.util.Map<java.lang.String,java.lang.String> loadErrorMessages(@NonNull android.content.Context ctxt)
-
-