Enum Class ProxyBackendCfgDefn.HashFunction
java.lang.Object
java.lang.Enum<ProxyBackendCfgDefn.HashFunction>
org.forgerock.opendj.server.config.meta.ProxyBackendCfgDefn.HashFunction
- All Implemented Interfaces:
Serializable
,Comparable<ProxyBackendCfgDefn.HashFunction>
,java.lang.constant.Constable
- Enclosing class:
- ProxyBackendCfgDefn
Defines the set of permissible values for the "hash-function" property.
Specifies the hash function which will be used for data distribution.
This setting only applies to data distribution. Once this server is deployed, this setting must not be modified. Doing so could result in data loss. The hash function is used by the router to map incoming requests to a target server based on the request's target DN. The role of the hash function is to ensure that the flow of incoming requests is evenly distributed on the set of servers.
-
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()
Returns the enum constant of this class with the specified name.static ProxyBackendCfgDefn.HashFunction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MD5
Use the MD5 hash algorithm. This hash function does not distribute data evenly and should not be used in new deployments. -
MURMUR3
Use the Murmur3 hash algorithm. This hash function distributes data more evenly than MD5 and should be used in new deployments.
-
-
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<ProxyBackendCfgDefn.HashFunction>
-