Package | Description |
---|---|
org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
Modifier and Type | Method and Description |
---|---|
static <T> ConsistentHashMap<T> |
ConsistentHashMap.newMurmur3ConsistentHashMap()
Creates a new consistent hash map which will hash keys using Murmur3.
|
ConsistentHashMap<P> |
ConsistentHashMap.put(String partitionId,
P partition)
Puts a partition into this consistent hash map using the default weight which is sufficiently high to ensure a
reasonably uniform distribution among all partitions having the same weight.
|
ConsistentHashMap<P> |
ConsistentHashMap.put(String partitionId,
P partition,
int weight)
Puts a partition into this consistent hash map using the specified weight.
|
ConsistentHashMap<P> |
ConsistentHashMap.putAll(Map<String,P> map)
Copies all the partitions from the specified
map to this consistent hash map.. |
ConsistentHashMap<P> |
ConsistentHashMap.remove(String partitionId)
Removes the partition that was previously added using the provided partition ID.
|
Modifier and Type | Method and Description |
---|---|
static LdapClient |
LdapClients.newFixedSizeDistributionLoadBalancer(Set<Dn> partitionBaseDns,
ConsistentHashMap<? extends LdapClient> partitions,
Options options)
Creates a distribution load balancer which uses consistent hashing to distributes requests across a set of
partitions based on a hash of each request's target DN.
|
Copyright 2011-2017 ForgeRock AS.