Class PersistenceBackendFactory

java.lang.Object
org.gcube.documentstore.persistence.PersistenceBackendFactory

public abstract class PersistenceBackendFactory extends Object
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • DEFAULT_CONTEXT

      public static final String DEFAULT_CONTEXT
      See Also:
    • HOME_SYSTEM_PROPERTY

      public static final String HOME_SYSTEM_PROPERTY
      See Also:
    • FALLBACK_FILENAME

      protected static final String 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

      public static void forceImmediateRediscovery(String context)
    • getForceImmediateRediscovery

      public static Boolean getForceImmediateRediscovery(String context)
    • addRecordPackage

      public static void addRecordPackage(Package packageObject)
    • setFallbackLocation

      public static void setFallbackLocation(String path)
    • getFallbackLocation

      protected static String getFallbackLocation()
    • sanitizeContext

      protected static String sanitizeContext(String context)
    • removeSlashFromContext

      protected static String removeSlashFromContext(String context)
    • getFallbackFile

      public static File getFallbackFile(String context)
    • 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.
      Use flush(String) instead
      Parameters:
      context -
      timeout -
      timeUnit -
    • flush

      public static void flush(String context)
    • flushAll

      @Deprecated public static void flushAll(long timeout, TimeUnit timeUnit)
      Deprecated.
      Use flushAll() instead
      Parameters:
      timeout -
      timeUnit -
    • flushAll

      public static void flushAll()
    • shutdown

      public static void shutdown()