Class PersistenceBackendFactory
- java.lang.Object
-
- org.gcube.documentstore.persistence.PersistenceBackendFactory
-
public abstract class PersistenceBackendFactory extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CONTEXTprotected static StringFALLBACK_FILENAMEstatic longFALLBACK_RETRY_TIMEstatic StringHOME_SYSTEM_PROPERTYstatic longINITIAL_DELAY
-
Constructor Summary
Constructors Constructor Description PersistenceBackendFactory()
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_CONTEXT
public static final String DEFAULT_CONTEXT
- See Also:
- Constant Field Values
-
HOME_SYSTEM_PROPERTY
public static final String HOME_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
FALLBACK_FILENAME
protected static final String FALLBACK_FILENAME
- See Also:
- Constant Field Values
-
INITIAL_DELAY
public static final long INITIAL_DELAY
-
FALLBACK_RETRY_TIME
public static final long FALLBACK_RETRY_TIME
-
-
Method Detail
-
forceImmediateRediscovery
public static void forceImmediateRediscovery(String context)
-
addRecordPackage
public static void addRecordPackage(Package packageObject)
-
setFallbackLocation
public static void setFallbackLocation(String path)
-
getFallbackLocation
protected static String getFallbackLocation()
-
createFallback
protected static FallbackPersistenceBackend createFallback(String context)
-
discoverPersistenceBackend
protected static PersistenceBackend discoverPersistenceBackend(String context, FallbackPersistenceBackend fallback)
-
getPersistenceBackend
public static PersistenceBackend getPersistenceBackend(String context)
-
resetToFallbackPersistenceBackend
protected static PersistenceBackend resetToFallbackPersistenceBackend(PersistenceBackend actual, String context)
-
rediscoverPersistenceBackend
protected static PersistenceBackend rediscoverPersistenceBackend(FallbackPersistenceBackend actual, String context)
-
flush
@Deprecated public static void flush(String context, long timeout, TimeUnit timeUnit)
Deprecated.Useflush(String)instead- Parameters:
context-timeout-timeUnit-
-
flush
public static void flush(String context)
-
flushAll
@Deprecated public static void flushAll(long timeout, TimeUnit timeUnit)
Deprecated.UseflushAll()instead- Parameters:
timeout-timeUnit-
-
flushAll
public static void flushAll()
-
shutdown
public static void shutdown()
-
-