Interface EntryBalancingRequestProcessor
-
- All Superinterfaces:
RequestProcessor
@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface EntryBalancingRequestProcessor extends RequestProcessor
This interface defines a set of methods that may be used to obtain information about and interact with an entry-balancing request processor and its component backend sets and servers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<BackendSet>
getBackendSets()
Retrieves a list of the backend sets for this entry-balancing request processor.DN
getBalancingPointBaseDN()
Retrieves the DN of the balancing point for the entry-balancing request processor.ObjectPair<SearchResultEntry,BackendSet>
getEntry(OperationContext op, java.lang.String dn)
Retrieves the specified entry from this entry-balancing request processor.BackendSet
getGlobalIndexHint(DN dn)
Retrieves the backend set in which the entry-balancing global index believes the entry with the specified DN may exist.BackendSet
getGlobalIndexHint(java.lang.String attributeType, byte[] value)
Retrieves the backend set in which the entry-balancing global index believes the entry with the specified attribute value may exist.BackendSet
getGlobalIndexHint(java.lang.String attributeType, java.lang.String value)
Retrieves the backend set in which the entry-balancing global index believes the entry with the specified attribute value may exist.DN
getRequestProcessorBaseDN()
Retrieves the base DN for the entry-balancing request processor.java.util.List<ObjectPair<SearchResultEntry,BackendSet>>
search(ClientContext clientContext, java.lang.String baseDN, SearchScope scope, Filter filter, java.lang.String... attributes)
Performs a search for all entries in this entry-balancing request processor that match the provided criteria.
-
-
-
Method Detail
-
getRequestProcessorBaseDN
DN getRequestProcessorBaseDN()
Retrieves the base DN for the entry-balancing request processor.- Specified by:
getRequestProcessorBaseDN
in interfaceRequestProcessor
- Returns:
- The base DN for the entry-balancing request processor.
-
getBalancingPointBaseDN
DN getBalancingPointBaseDN()
Retrieves the DN of the balancing point for the entry-balancing request processor.- Returns:
- The DN of the balancing point for the entry-balancing request processor.
-
getBackendSets
java.util.List<BackendSet> getBackendSets()
Retrieves a list of the backend sets for this entry-balancing request processor.- Returns:
- A list of the backend sets for this entry-balancing request processor.
-
getGlobalIndexHint
BackendSet getGlobalIndexHint(DN dn)
Retrieves the backend set in which the entry-balancing global index believes the entry with the specified DN may exist.- Parameters:
dn
- The DN of the entry for which to retrieve the global index hint.- Returns:
- The backend set in which the entry-balancing global index believes
the entry with the specified DN may exist, or
null
if the global index does not have any information that may help locate the target entry, or if the provided DN is not below the balancing point.
-
getGlobalIndexHint
BackendSet getGlobalIndexHint(java.lang.String attributeType, java.lang.String value)
Retrieves the backend set in which the entry-balancing global index believes the entry with the specified attribute value may exist. The value is expected to be unique across the entire data set.- Parameters:
attributeType
- The name or OID of the attribute type of the attribute for which to retrieve the global index hint.value
- The attribute value for which to retrieve the global index hint.- Returns:
- The backend set in which the entry-balancing global index believes
the entry with the specified attribute value may exist, or
null
if the global index does not have any information that may help locate the target entry.
-
getGlobalIndexHint
BackendSet getGlobalIndexHint(java.lang.String attributeType, byte[] value)
Retrieves the backend set in which the entry-balancing global index believes the entry with the specified attribute value may exist. The value is expected to be unique across the entire data set.- Parameters:
attributeType
- The name or OID of the attribute type of the attribute for which to retrieve the global index hint.value
- The attribute value for which to retrieve the global index hint.- Returns:
- The backend set in which the entry-balancing global index believes
the entry with the specified attribute value may exist, or
null
if the global index does not have any information that may help locate the target entry.
-
getEntry
ObjectPair<SearchResultEntry,BackendSet> getEntry(OperationContext op, java.lang.String dn) throws LDAPException
Retrieves the specified entry from this entry-balancing request processor. If a broadcast is needed to find the entry, it will be done in parallel.- Parameters:
op
- Information about the operation currently being processed. This must not benull
.dn
- The DN of the entry to retrieve. It must not benull
. If it is at or above the balancing point base DN, then the backend set from which the entry will be retrieved is undefined.- Returns:
- An object that pairs the requested entry with information about
the backend set from which it was retrieved, or
null
if the specified entry was not found in any backend set. - Throws:
LDAPException
- If a problem is encountered while making the determination.
-
search
java.util.List<ObjectPair<SearchResultEntry,BackendSet>> search(ClientContext clientContext, java.lang.String baseDN, SearchScope scope, Filter filter, java.lang.String... attributes) throws LDAPException
Performs a search for all entries in this entry-balancing request processor that match the provided criteria. The search will not be allowed to return more than 100 entries.- Parameters:
clientContext
- The client context to use when performing the search. If this isnull
, then an internal root user will be used to retrieve the entry. If it is non-null
, then its authorization identity will be used.baseDN
- The base DN to use for the search.scope
- The scope to use for the search.filter
- The filter to use for the search.attributes
- The set of attributes to request to be included in the entries that are returned. If this isnull
or empty, then all user attributes will be requested.- Returns:
- A list containing each matching entry paired with the backend set from which it was retrieved.
- Throws:
LDAPException
- If a problem is encountered while performing the search.
-
-