public class FileDbProvider extends Object implements SchematicDbProvider<FileDb>
SchematicDbProvider implementation for storing repository data on the FS and in memory.| Modifier and Type | Field and Description |
|---|---|
static String |
COMPRESS_FIELD |
static String |
PATH_FIELD |
static String |
TYPE_FILE |
static String |
TYPE_MEM |
| Constructor and Description |
|---|
FileDbProvider() |
| Modifier and Type | Method and Description |
|---|---|
FileDb |
getDB(String type,
Document configuration)
Returns a schematic DB instance for a given db type and configuration document
|
public static final String TYPE_MEM
public static final String TYPE_FILE
public static final String PATH_FIELD
public static final String COMPRESS_FIELD
public FileDb getDB(String type, Document configuration)
SchematicDbProvidergetDB in interface SchematicDbProvider<FileDb>type - the type of DB; may not be nullconfiguration - a Document instance which contains the configuration of a particular DB.SchematicDb instance or null if a particular provider does not recognize the type.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.