Package com.couchbase.lite.internal
Class CouchbaseLiteInternal
- java.lang.Object
-
- com.couchbase.lite.internal.CouchbaseLiteInternal
-
public final class CouchbaseLiteInternal extends java.lang.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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SCRATCH_DIR_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
debugging()
static android.content.Context
getContext()
static ExecutionService
getExecutionService()
static NetworkConnectivityManager
getNetworkConnectivityManager()
static java.io.File
getRootDir()
static java.lang.String
getRootDirPath()
static java.io.File
getScratchDir()
static java.lang.String
getScratchDirPath()
static void
init(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 void
requireInit(java.lang.String message)
static void
reset(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)
-
-