Package org.opends.server.discovery
Class Partition
java.lang.Object
org.opends.server.discovery.Partition
Named set of servers defining a distributed service. A distribution load balancer expects data to be split up into
shards referred to as "partitions", each partition exposing the same set of naming contexts, but only a sub-set of
the data. For example, a distribution might have two partitions, the first containing all users whose name begins
with A-M, and the second containing all users whose name begins with N-Z. Both partitions have the same naming
contexts, e.g:
- dc=example,dc=com
- unsharded parent naming context replicated across all servers.
Contains data common to all partitions, such as ACIs, groups, etc. - ou=people,dc=example,dc=com
- sharded naming context whose content (the users) is split up according to some function, e.g. consistent hashing.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Partition
A partition implementing the null object pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of servers which have been detected but cannot be used because they do not comply with the configuration of the service discovery mechanism (wrong base DN for example).Returns the ID for the partition.Returns the set of primary server to use.Returns the set of fallback servers to use.toString()
-
Field Details
-
NULL_PARTITION
A partition implementing the null object pattern.
-
-
Method Details
-
getPrimaryServers
Returns the set of primary server to use.- Returns:
- the set of primary server to use.
-
getSecondaryServers
Returns the set of fallback servers to use.- Returns:
- the set of fallback servers to use
-
getNonCompliantServers
Returns the set of servers which have been detected but cannot be used because they do not comply with the configuration of the service discovery mechanism (wrong base DN for example).- Returns:
- the set of non-compliant servers
-
getPartitionId
Returns the ID for the partition.- Returns:
- the ID for the partition
-
toString
-