public class StorageConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CORE_DBS_MEM |
static String |
CORE_DBS_MONGODB |
static String |
CORE_DEFAULT |
static String |
CORE_PROPERTY |
static String |
CORE_VCS |
Constructor and Description |
---|
StorageConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected static String |
defaultSystemProperty(String name,
String def) |
String |
getRepositoryName() |
String |
getVCSName() |
boolean |
hasSubSecondResolution()
Checks if the database has sub-second resolution.
|
protected void |
initVCS() |
boolean |
isDBS() |
boolean |
isDBSMem() |
boolean |
isDBSMongoDB() |
boolean |
isVCS() |
boolean |
isVCSDB2() |
boolean |
isVCSDerby() |
boolean |
isVCSH2() |
boolean |
isVCSMySQL() |
boolean |
isVCSOracle() |
boolean |
isVCSPostgreSQL() |
boolean |
isVCSSQLServer() |
void |
maybeSleepToNextSecond()
For databases that don't have sub-second resolution, sleep a bit to get to the next second.
|
void |
sleepForFulltext()
For databases that do asynchronous fulltext indexing, sleep a bit.
|
boolean |
supportsMultipleFulltextIndexes()
Checks if the database supports multiple fulltext indexes.
|
void |
waitForAsyncCompletion() |
void |
waitForFulltextIndexing() |
public static final String CORE_PROPERTY
public static final String CORE_VCS
public static final String CORE_DBS_MEM
public static final String CORE_DBS_MONGODB
public static final String CORE_DEFAULT
public StorageConfiguration()
protected static String defaultSystemProperty(String name, String def)
protected void initVCS()
public String getVCSName()
public boolean isVCS()
public boolean isVCSH2()
public boolean isVCSDerby()
public boolean isVCSPostgreSQL()
public boolean isVCSMySQL()
public boolean isVCSOracle()
public boolean isVCSSQLServer()
public boolean isVCSDB2()
public boolean isDBS()
public boolean isDBSMem()
public boolean isDBSMongoDB()
public String getRepositoryName()
public void sleepForFulltext()
public void maybeSleepToNextSecond()
public boolean hasSubSecondResolution()
public void waitForAsyncCompletion()
public void waitForFulltextIndexing()
public boolean supportsMultipleFulltextIndexes()
Copyright © 2015 Nuxeo SA. All rights reserved.