public class StorageConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CORE_MEM |
static String |
CORE_MONGODB |
static String |
CORE_PROPERTY |
static String |
CORE_VCS |
static String |
DEFAULT_CORE |
Constructor and Description |
---|
StorageConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
assertAfterTimestamp(Calendar expected,
Calendar actual)
Due to some DB restriction this method could fire a false negative.
|
void |
assertBeforeTimestamp(Calendar expected,
Calendar actual)
Due to some DB restriction this method could fire a false negative.
|
void |
assertEqualsTimestamp(Calendar expected,
Calendar actual) |
void |
assertNotAfterTimestamp(Calendar expected,
Calendar actual) |
void |
assertNotBeforeTimestamp(Calendar expected,
Calendar actual) |
void |
assertNotEqualsTimestamp(Calendar expected,
Calendar actual) |
protected void |
clearMongoDB(MongoDBRepositoryDescriptor descriptor) |
protected static String |
defaultProperty(String name,
String def) |
protected static String |
defaultSystemProperty(String name,
String def) |
URL |
getBlobManagerContrib(FeaturesRunner runner) |
URL |
getRepositoryContrib(FeaturesRunner runner) |
String |
getRepositoryName() |
boolean |
hasSubSecondResolution()
Checks if the database has sub-second resolution.
|
protected void |
initJDBC() |
protected void |
initMongoDB() |
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_MEM
public static final String CORE_MONGODB
public static final String DEFAULT_CORE
public StorageConfiguration()
protected static String defaultSystemProperty(String name, String def)
protected static String defaultProperty(String name, String def)
protected void initJDBC()
protected void initMongoDB()
protected void clearMongoDB(MongoDBRepositoryDescriptor descriptor) throws UnknownHostException
UnknownHostException
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()
public URL getBlobManagerContrib(FeaturesRunner runner)
public URL getRepositoryContrib(FeaturesRunner runner)
public void assertEqualsTimestamp(Calendar expected, Calendar actual)
public void assertNotEqualsTimestamp(Calendar expected, Calendar actual)
public void assertBeforeTimestamp(Calendar expected, Calendar actual)
public void assertNotBeforeTimestamp(Calendar expected, Calendar actual)
public void assertAfterTimestamp(Calendar expected, Calendar actual)
public void assertNotAfterTimestamp(Calendar expected, Calendar actual)
Copyright © 2016 Nuxeo SA. All rights reserved.