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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static JeBackendCfgDefn.DbCacheMode
Returns the enum constant of this class with the specified name.static JeBackendCfgDefn.DbCacheMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADAPTIVE
Regularly check the database and cache metrics and set the best cache mode accordingly. -
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
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
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
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 nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<JeBackendCfgDefn.DbCacheMode>
-