Enum Class JeBackendCfgDefn.DbCacheMode

java.lang.Object
java.lang.Enum<JeBackendCfgDefn.DbCacheMode>
org.forgerock.opendj.server.config.meta.JeBackendCfgDefn.DbCacheMode
All Implemented Interfaces:
Serializable, Comparable<JeBackendCfgDefn.DbCacheMode>, java.lang.constant.Constable
Enclosing class:
JeBackendCfgDefn

public static enum JeBackendCfgDefn.DbCacheMode extends Enum<JeBackendCfgDefn.DbCacheMode>
Defines the set of permissible values for the "db-cache-mode" property.

The strategy that will be used for caching database content in memory.

Specifies whether the database heap cache should keep only internal nodes or both internal and leaf nodes.

  • Enum Constant Details

    • ADAPTIVE

      public static final JeBackendCfgDefn.DbCacheMode ADAPTIVE
      Regularly check the database and cache metrics and set the best cache mode accordingly.
    • CACHE_LN

      public static final JeBackendCfgDefn.DbCacheMode CACHE_LN
      Keep both internal and leaf nodes in the database heap cache. This can improve performance when the database is relatively small and when the database fits entirely into the database cache. This mode requires the cache to be rebuilt after each restart.
    • EVICT_LN

      public static final JeBackendCfgDefn.DbCacheMode EVICT_LN
      Keep only internal nodes in the database heap cache. Leaf nodes will only be cached by the file system. This mode improves performance most when the database is too big to fit entirely into the database cache, or when the cache size would require an overly large JVM heap. This mode has the advantage of keeping the cache hot between restarts.
  • Method Details

    • values

      public static JeBackendCfgDefn.DbCacheMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JeBackendCfgDefn.DbCacheMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<JeBackendCfgDefn.DbCacheMode>