Class PersistenceBackendFactory
java.lang.Object
org.gcube.documentstore.persistence.PersistenceBackendFactory
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddRecordPackage(Package packageObject) protected static FallbackPersistenceBackendcreateFallback(String context) protected static PersistenceBackenddiscoverPersistenceBackend(String context, FallbackPersistenceBackend fallback) static voidstatic voidDeprecated.static voidflushAll()static voidDeprecated.static voidforceImmediateRediscovery(String context) static FilegetFallbackFile(String context) protected static Stringstatic BooleangetForceImmediateRediscovery(String context) static PersistenceBackendgetPersistenceBackend(String context) protected static PersistenceBackendrediscoverPersistenceBackend(FallbackPersistenceBackend actual, String context) protected static StringremoveSlashFromContext(String context) protected static PersistenceBackendresetToFallbackPersistenceBackend(PersistenceBackend actual, String context) protected static StringsanitizeContext(String context) static voidsetFallbackLocation(String path) static voidshutdown()
-
Field Details
-
DEFAULT_CONTEXT
- See Also:
-
HOME_SYSTEM_PROPERTY
- See Also:
-
FALLBACK_FILENAME
- See Also:
-
INITIAL_DELAY
public static final long INITIAL_DELAY -
FALLBACK_RETRY_TIME
public static final long FALLBACK_RETRY_TIME
-
-
Constructor Details
-
PersistenceBackendFactory
public PersistenceBackendFactory()
-
-
Method Details
-
forceImmediateRediscovery
-
getForceImmediateRediscovery
-
addRecordPackage
-
setFallbackLocation
-
getFallbackLocation
-
sanitizeContext
-
removeSlashFromContext
-
getFallbackFile
-
createFallback
-
discoverPersistenceBackend
protected static PersistenceBackend discoverPersistenceBackend(String context, FallbackPersistenceBackend fallback) -
getPersistenceBackend
-
resetToFallbackPersistenceBackend
protected static PersistenceBackend resetToFallbackPersistenceBackend(PersistenceBackend actual, String context) -
rediscoverPersistenceBackend
protected static PersistenceBackend rediscoverPersistenceBackend(FallbackPersistenceBackend actual, String context) -
flush
Deprecated.Useflush(String)instead- Parameters:
context-timeout-timeUnit-
-
flush
-
flushAll
Deprecated.UseflushAll()instead- Parameters:
timeout-timeUnit-
-
flushAll
public static void flushAll() -
shutdown
public static void shutdown()
-