Package com.couchbase.lite.internal
Class CouchbaseLiteInternal
- java.lang.Object
-
- com.couchbase.lite.internal.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.
-
-
Field Summary
Fields Modifier and Type Field Description static 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 FilegetRootDir()static StringgetRootDirPath()static FilegetScratchDir()static StringgetScratchDirPath()static voidinit(MValue.Delegate mValueDelegate, boolean debug, File rootDir, File scratchDir, android.content.Context ctxt)Initialize CouchbaseLite library.static Map<String,String>loadErrorMessages(android.content.Context ctxt)static voidrequireInit(String message)static voidreset(boolean state)
-
-
-
Field Detail
-
SCRATCH_DIR_NAME
public static final String SCRATCH_DIR_NAME
- See Also:
- Constant Field Values
-
-
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()
-
getNetworkConnectivityManager
@NonNull public static NetworkConnectivityManager getNetworkConnectivityManager()
-
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)
-
-